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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1
RA = 157.077, Dec = 31.1389
tmin = 239587201, tmax = 239846401
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='895535', job_status='RUN', time_executed='2021-09-01 22:48:42.558696', time_epoch_executed='1630561722.56' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895535

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895535/ft1_4FGL_J1028.3+3108_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895535/ft2_4FGL_J1028.3+3108_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895535/ft1_4FGL_J1028.3+3108_daily_bin1.fits outfile=/scratch/kocevski/895535/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1.fits ra=157.077 dec=31.1389 rad=12.0 tmin=239587201.0 tmax=239846401.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.36
user 1.16
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895535/ft1_filtered_4FGL_J1028.3+3108_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/895535/ft2_4FGL_J1028.3+3108_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/895535/ltcube_239587201_239846401_4FGL_J1028.3+3108_daily_bin1.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/895535/ft2_4FGL_J1028.3+3108_daily_bin1.fits
.....................!
real 18.94
user 18.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895535/ft1_filtered_4FGL_J1028.3+3108_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/895535/ft2_4FGL_J1028.3+3108_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/895535/ltcube_239587201_239846401_4FGL_J1028.3+3108_daily_bin1.fits outfile=/scratch/kocevski/895535/expmap_239587201_239846401_4FGL_J1028.3+3108_daily_bin1.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/895535/ltcube_239587201_239846401_4FGL_J1028.3+3108_daily_bin1.fits
.....................!
real 193.28
user 189.05
sys 3.70

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/895535/ft1_filtered_4FGL_J1028.3+3108_daily_bin1.fits scfile=/scratch/kocevski/895535/ft2_4FGL_J1028.3+3108_daily_bin1.fits outfile=/scratch/kocevski/895535/cmap_239587201_239846401_4FGL_J1028.3+3108_daily_bin1.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=157.077 yref=31.1389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895535/ft1_filtered_4FGL_J1028.3+3108_daily_bin1.fits scfile=/scratch/kocevski/895535/ft2_4FGL_J1028.3+3108_daily_bin1.fits outfile=/scratch/kocevski/895535/cmap_HighResolution_239587201_239846401_4FGL_J1028.3+3108_daily_bin1.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.635       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30309       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11423E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.350       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .68844E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59945E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5556       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.257       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10892E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21101       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.217       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1946       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.311       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19758       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6502       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .34377       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.297       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    28.288       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98620       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .67416       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=   4298.284     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3406 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.583        25.425       -.28648E-06   -.26249E-03
   2  Prefactor     .10000E-03    3.0683       -.12587E-07** at limit **
   3  Prefactor     .25348        17.485        .24002E-05   -.87361E-04
   4  Prefactor     .10000E-03    1.4616        .21593E-06** at limit **
   5  norm          19.347        10.031        .59017E-07   -.76464E-04
   6  Prefactor     .10000E-03    3.2441        .37934E-06** at limit **
   7  Prefactor     .10002E-03    302.96        .11328E-04** at limit **
   8  Prefactor     .10000E-03    2.8122        .30966E-06** at limit **
   9  norm          2.5383        13.709        .46391E-06    .80939E-04
  10  Prefactor     11.264        60.670       -.33241E-05   -.62451E-04
  11  Prefactor     .10000E-03    12.316       -.37629E-07** at limit **
  12  Prefactor     .10000E-03    4.3150       -.49337E-06** at limit **
  13  Prefactor     .10000E-03    1.8937       -.43818E-07** at limit **
  14  Prefactor     .20341        15.261        .27593E-05   -.15657E-03
  15  Prefactor     13.265        45.525       -.14501E-05   -.28233E-05
  16  Prefactor     1.1942        2.2341       -.19938E-06   -.36797E-03
  17  Prefactor     .10000E-03    5.9009        .39590E-06** at limit **
  18  Prefactor     .10000E-03    11.837        .13877E-06** at limit **
  19  Prefactor     11.311        9.7842        .28214E-07   -.34535E-04
  20  Prefactor     .17764        35.004       -.22794E-05   -.69671E-04
  21  norm          1.6502        .41190        .30420E-08   -.28875E-04
  22  Prefactor     .34421        3.6912       -.12519E-05    .39917E-03
  23  Prefactor     15.290        17.645       -.73909E-07   -.25958E-04
  24  Prefactor     .10000E-03    5.4249        .64615E-08** at limit **
  25  norm          28.283        17.128        .22025E-07   -.10131E-04
  26  Normalizat    .98649        .18197        .10109E-05   -.31652E-03
  27  Prefactor     .67407        .19559       -.36658E-05   -.20141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.5831
  Prefactor  = 0.0001
  Prefactor  = 0.253476
  Prefactor  = 0.0001
  norm       = 19.3467
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.000100001
  norm       = 2.53834
  Prefactor  = 11.2635
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.203408
  Prefactor  = 13.2645
  Prefactor  = 1.1942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3107
  Prefactor  = 0.177641
  norm       = 1.65021
  Prefactor  = 0.344212
  Prefactor  = 15.2897
  Prefactor  = 0.0001
  norm       = 28.2828
  Normalizat = 0.98649
  Prefactor  = 0.67407
 **********
 **   18 **HESSE 
 **********

 FCN=   4298.284     FROM HESSE     STATUS=OK           502 CALLS     3908 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.583        25.710        .66214E-04   -1.4498    
   2  Prefactor     .10000E-03    3.0853        .11214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .25348        95.012        .40010E-02   -1.5607    
   4  Prefactor     .10000E-03    4.6560        .15363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.347        10.042        .91052E-04   -1.4828    
   6  Prefactor     .10000E-03    3.3415        .22981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    316.21        .37453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.172        .20624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5383        13.858        .25540E-03   -1.5389    
  10  Prefactor     11.264        61.705        .59703E-03   -1.5037    
  11  Prefactor     .10000E-03    12.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.1551        .25234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9017        .88127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .20341        33.198        .24362E-02   -1.5618    
  15  Prefactor     13.265        44.873        .11018E-03   -1.4979    
  16  Prefactor     1.1942        2.1939        .12476E-03   -1.5489    
  17  Prefactor     .10000E-03    5.9517        .15561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.311        9.7664        .11912E-03   -1.5035    
  20  Prefactor     .17764        59.514        .34270E-02   -1.5624    
  21  norm          1.6502        .41310        .19951E-04   -1.5451    
  22  Prefactor     .34421        5.1975        .19706E-02   -1.5591    
  23  Prefactor     15.290        17.675        .10241E-03   -1.4926    
  24  Prefactor     .10000E-03    5.4259        .14913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          28.283        17.126        .75326E-04   -1.4644    
  26  Normalizat    .98649        .20695        .20511E-03   -.93484    
  27  Prefactor     .67407        .22042        .27957E-03   -1.0455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09781e-08
Minuit parameter uncertainties:
  1  25.7181
  2  7.67805e-07
  3  9.82873
  4  8.60062e-06
  5  10.043
  6  1.40245e-05
  7  0.00497179
  8  0.000253015
  9  11.866
  10  52.8105
  11  1.02664e-05
  12  0.000175234
  13  3.72528e-06
  14  5.19883
  15  44.9872
  16  2.19406
  17  3.45194e-05
  18  8.37306e-07
  19  9.76777
  20  6.50767
  21  0.413104
  22  2.67498
  23  17.6814
  24  9.7709e-07
  25  17.1293
  26  0.207123
  27  0.220703
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.126e+01  5.281e+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:  6.741e-01  2.207e-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.865e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/895535/likelihoodResults_239587201_239846401_4FGL_J1028.3+3108_daily_bin1.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) = 4298.2137893
delta logL = 0.0698166208358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4298.18703652
delta logL = 0.096569402298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8776       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2284       1.0000          .0000       10.000    
     3 'Normalizat'    .96930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68443       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4298.187     FROM MIGRAD    STATUS=FAILED        96 CALLS      282 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8579        799.33        .20491E-03   -.11540E-04
   2  Index         3.2297        5.6528        .82911E-02    .39316E-03
   3  Normalizat    .96940        .17184        .20673E-03    .52047E-03
   4  Prefactor     .68438        .19025        .27761E-03   -.45360E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4298.187     FROM SIMPLEX   STATUS=UNCHANGED    102 CALLS      384 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8579        799.33        .26062E-03   -.11540E-04
   2  Index         3.2297        5.6528        .98846E-03    .39316E-03
   3  Normalizat    .96940        .17184        .10498E-03    .52047E-03
   4  Prefactor     .68438        .19025        .72988E-04   -.45360E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4298.187     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      416 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8577        95.126        .81966E-05   -.18586E-04
   2  Index         3.2298        3.7164        .16582E-02   -.33731E-05
   3  Normalizat    .96938        .19846        .41346E-04    .29311E-04
   4  Prefactor     .68439        .22337        .55523E-04    .23752E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.85773
  Index      = 3.22975
  Normalizat = 0.969382
  Prefactor  = 0.684392
 **********
 **   18 **HESSE 
 **********

 FCN=   4298.187     FROM HESSE     STATUS=OK            25 CALLS      441 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8577        46.770        .16393E-05   -1.5315    
   2  Index         3.2298        2.8026        .66329E-04   -.36190    
   3  Normalizat    .96938        .19640        .82692E-05   -.94063    
   4  Prefactor     .68439        .22101        .11105E-04   -1.0414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1695e-12
Minuit parameter uncertainties:
  1  26.8903
  2  3.00524
  3  0.19655
  4  0.221298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895535': 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) = 4298.18703585
delta logL = 0.0965700693732

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  6.844e-01  2.213e-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.694e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/895535/cmap_HighResolution_239587201_239846401_4FGL_J1028.3+3108_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-01 22:59:26.397609', job_id='895535', GAL2='0.68', fit_tolerance='1e-08', EG2='0.97', EG='0.99', time_epoch_completed='1630562366.4', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='9.66e-02', ts2='0.25', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 22:59:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 895535: <4FGL_J1028.3+3108_daily_bin1> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:45:32 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:45:42 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:42 2021
Terminated at Wed Sep  1 22:59:27 2021
Results reported at Wed Sep  1 22:59:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1 157.077 31.1389 239587201 239846401 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 :                                   644.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            835 sec.

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

