/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 72 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 = 7487
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1641
RA = 157.077, Dec = 31.1389
tmin = 664675201, tmax = 664934401
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='364498', job_status='RUN', time_executed='2022-01-27 00:16:09.052055', time_epoch_executed='1643271369.05' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364498

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364498/ft1_4FGL_J1028.3+3108_daily_bin1641.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364498/ft2_4FGL_J1028.3+3108_daily_bin1641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364498/ft1_4FGL_J1028.3+3108_daily_bin1641.fits outfile=/scratch/kocevski/364498/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1641.fits ra=157.077 dec=31.1389 rad=12.0 tmin=664675201.0 tmax=664934401.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.14
user 2.62
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364498/ft1_filtered_4FGL_J1028.3+3108_daily_bin1641.fits" evtable="EVENTS" scfile=/scratch/kocevski/364498/ft2_4FGL_J1028.3+3108_daily_bin1641.fits sctable="SC_DATA" outfile=/scratch/kocevski/364498/ltcube_664675201_664934401_4FGL_J1028.3+3108_daily_bin1641.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/364498/ft2_4FGL_J1028.3+3108_daily_bin1641.fits
.....................!
real 18.07
user 17.68
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364498/ft1_filtered_4FGL_J1028.3+3108_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/364498/ft2_4FGL_J1028.3+3108_daily_bin1641.fits sctable="SC_DATA" expcube=/scratch/kocevski/364498/ltcube_664675201_664934401_4FGL_J1028.3+3108_daily_bin1641.fits outfile=/scratch/kocevski/364498/expmap_664675201_664934401_4FGL_J1028.3+3108_daily_bin1641.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/364498/ltcube_664675201_664934401_4FGL_J1028.3+3108_daily_bin1641.fits
.....................!
real 152.01
user 147.31
sys 3.74

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/364498/ft1_filtered_4FGL_J1028.3+3108_daily_bin1641.fits scfile=/scratch/kocevski/364498/ft2_4FGL_J1028.3+3108_daily_bin1641.fits outfile=/scratch/kocevski/364498/cmap_664675201_664934401_4FGL_J1028.3+3108_daily_bin1641.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.73
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364498/ft1_filtered_4FGL_J1028.3+3108_daily_bin1641.fits scfile=/scratch/kocevski/364498/ft2_4FGL_J1028.3+3108_daily_bin1641.fits outfile=/scratch/kocevski/364498/cmap_HighResolution_664675201_664934401_4FGL_J1028.3+3108_daily_bin1641.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.76
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0442       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7375       1.0000         .10000E-03   10000.    
     5 'norm      '    7.6845       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11946E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5398       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0958       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6126       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1532       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.784       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .50210       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5416       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.940       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1961       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0206       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=   6441.981     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     2839 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.989        .18146E-05** at limit **
   2  Prefactor     2.0451        7.3801        .98243E-05   -.44442E-04
   3  Prefactor     .10000E-03    3.9588        .42920E-08** at limit **
   4  Prefactor     2.7373        2.8215       -.12338E-06   -.38664E-04
   5  norm          7.6843        7.4315       -.22509E-06   -.22703E-04
   6  Prefactor     .10000E-03    2.7021       -.33989E-06** at limit **
   7  Prefactor     .10000E-03    11.411       -.66416E-06** at limit **
   8  Prefactor     1.5410        3.7383        .20807E-06   -.83544E-04
   9  norm          .10000E-03    6.1765       -.33685E-06** at limit **
  10  Prefactor     .10000E-03    28.897       -.45517E-06** at limit **
  11  Prefactor     .10000E-03    15.393       -.76622E-06** at limit **
  12  Prefactor     2.0946        4.3008       -.87831E-06   -.56187E-03
  13  Prefactor     .10000E-03    1.7369       -.37432E-06** at limit **
  14  Prefactor     7.6091        8.1499        .10663E-05   -.92362E-04
  15  Prefactor     3.0983        73.447        .18082E-04   -.21266E-04
  16  Prefactor     .10000E-03    1.2029        .21118E-06** at limit **
  17  Prefactor     18.778        11.424        .22389E-06   -.40855E-04
  18  Prefactor     .10000E-03    38.426       -.15002E-05** at limit **
  19  Prefactor     .10000E-03    6.2037       -.55027E-07** at limit **
  20  Prefactor     .10000E-03    5.3552       -.13370E-06** at limit **
  21  norm          .50207        .22544        .31003E-08   -.59987E-03
  22  Prefactor     3.5412        2.8898        .21945E-06    .11813E-04
  23  Prefactor     .10000E-03    10.030        .88217E-06** at limit **
  24  Prefactor     .10000E-03    11.266       -.52821E-06** at limit **
  25  norm          14.940        12.834        .23596E-06   -.41200E-04
  26  Normalizat    1.1963        .17963       -.11770E-05   -.12570E-03
  27  Prefactor     1.0205        .19566       -.15631E-05   -.15568E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.04509
  Prefactor  = 0.0001
  Prefactor  = 2.73729
  norm       = 7.68435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.54098
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09462
  Prefactor  = 0.0001
  Prefactor  = 7.60907
  Prefactor  = 3.09826
  Prefactor  = 0.0001
  Prefactor  = 18.7777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.502072
  Prefactor  = 3.54115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.9397
  Normalizat = 1.19626
  Prefactor  = 1.02046
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.981     FROM HESSE     STATUS=OK           488 CALLS     3327 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0451        7.4003        .14460E-02   -1.5422    
   3  Prefactor     .10000E-03    3.9670        .15594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7373        2.8107        .12892E-03   -1.5377    
   5  norm          7.6843        7.4297        .14466E-03   -1.5153    
   6  Prefactor     .10000E-03    5.1844        .24406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5410        3.5865        .22262E-03   -1.5460    
   9  norm          .10000E-03    6.2397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0946        4.2898        .22328E-03   -1.5419    
  13  Prefactor     .10000E-03    1.7495        .10335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.6091        8.0722        .72673E-03   -1.5156    
  15  Prefactor     3.0983        73.580        .22826E-03   -1.5356    
  16  Prefactor     .10000E-03    2.1405        .16821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.778        11.402        .46207E-03   -1.4841    
  18  Prefactor     .10000E-03    38.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3809        .18131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .50207        .22721        .24743E-04   -1.5566    
  22  Prefactor     3.5412        2.8872        .11777E-03   -1.5332    
  23  Prefactor     .10000E-03    10.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.940        12.828        .10362E-03   -1.4935    
  26  Normalizat    1.1963        .21449        .23962E-03   -.86718    
  27  Prefactor     1.0205        .23409        .28926E-03   -.92051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71376e-10
Minuit parameter uncertainties:
  1  8.79452e-06
  2  7.40365
  3  5.04169e-06
  4  2.81083
  5  7.43055
  6  4.09944e-05
  7  2.55789e-06
  8  3.58696
  9  2.66133e-05
  10  2.2433e-05
  11  0.000116493
  12  4.2904
  13  2.16506e-05
  14  8.07339
  15  30.2387
  16  6.9354e-07
  17  11.4029
  18  0.000130326
  19  2.72393e-06
  20  6.33438e-06
  21  0.227213
  22  2.88733
  23  1.24165e-05
  24  1.30185e-05
  25  12.8308
  26  0.214645
  27  0.234323
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  2.243e-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:  1.020e+00  2.343e-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.196e+00  2.146e-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: 5.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/364498/likelihoodResults_664675201_664934401_4FGL_J1028.3+3108_daily_bin1641.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) = 6441.98161697
delta logL = -0.0001645910761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6441.9814524
delta logL = -1.91139406525e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1613       1.0000          .0000       10.000    
     3 'Normalizat'    1.1963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0204       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=   6441.981     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6585.4        .90712E-02** at limit **
   2  Index         2.1640        8.0907        .50000       -.80397E-06
   3  Normalizat    1.1963        .59620E-01    .54192E-01    .27541E-04
   4  Prefactor     1.0205        .67376E-01    .65394E-01    .27736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16396
  Normalizat = 1.19626
  Prefactor  = 1.02046
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.981     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7547.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1640        5.9497        .50000       -.60311    
   3  Normalizat    1.1963        .12357        .23962E-03   -.86718    
   4  Prefactor     1.0205        .13958        .28926E-03   -.92051    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.50623e-11
Minuit parameter uncertainties:
  1  0.000161335
  2  61.4238
  3  0.123602
  4  0.139634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364498': 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) = 6441.98145239
delta logL = -1.42790668178e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.020e+00  1.396e-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.196e+00  1.236e-01  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/364498/cmap_HighResolution_664675201_664934401_4FGL_J1028.3+3108_daily_bin1641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.51e-08', time_completed='2022-01-27 00:26:07.221621', job_id='364498', GAL2='1.02', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1643271967.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-1.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1641' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 27 00:26:07 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 364581: <4FGL_J1028.3+3108_daily_bin1641> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1641> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Jan 27 00:10:14 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 27 00:10:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 27 00:10:16 2022
Terminated at Thu Jan 27 00:25:42 2022
Results reported at Thu Jan 27 00:25:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1641 157.077 31.1389 664675201 664934401 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 :                                   723.73 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             278.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3407 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 364498: <4FGL_J1028.3+3108_daily_bin1641> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1641> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan 27 00:10:07 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 27 00:10:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 27 00:10:10 2022
Terminated at Thu Jan 27 00:26:07 2022
Results reported at Thu Jan 27 00:26:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1641 157.077 31.1389 664675201 664934401 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 :                                   589.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             237.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            960 sec.

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

