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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1631
RA = 157.077, Dec = 31.1389
tmin = 662083201, tmax = 662342401
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='553160', job_status='RUN', time_executed='2021-12-28 00:12:33.684246', time_epoch_executed='1640679153.68' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/553160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/553160/ft1_4FGL_J1028.3+3108_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/553160/ft2_4FGL_J1028.3+3108_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/553160/ft1_4FGL_J1028.3+3108_daily_bin1631.fits outfile=/scratch/kocevski/553160/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1631.fits ra=157.077 dec=31.1389 rad=12.0 tmin=662083201.0 tmax=662342401.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.88
user 3.63
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/553160/ft2_4FGL_J1028.3+3108_daily_bin1631.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/553160/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1631.fits evtable="EVENTS" outfile="/scratch/kocevski/553160/ft1_filtered_4FGL_J1028.3+3108_daily_bin1631.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.55
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/553160/ft1_filtered_4FGL_J1028.3+3108_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/553160/ft2_4FGL_J1028.3+3108_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/553160/ltcube_662083201_662342401_4FGL_J1028.3+3108_daily_bin1631.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/553160/ft2_4FGL_J1028.3+3108_daily_bin1631.fits
.....................!
real 21.02
user 20.57
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/553160/ft1_filtered_4FGL_J1028.3+3108_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/553160/ft2_4FGL_J1028.3+3108_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/553160/ltcube_662083201_662342401_4FGL_J1028.3+3108_daily_bin1631.fits outfile=/scratch/kocevski/553160/expmap_662083201_662342401_4FGL_J1028.3+3108_daily_bin1631.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/553160/ltcube_662083201_662342401_4FGL_J1028.3+3108_daily_bin1631.fits
.....................!
real 191.34
user 185.60
sys 5.40

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/553160/ft1_filtered_4FGL_J1028.3+3108_daily_bin1631.fits scfile=/scratch/kocevski/553160/ft2_4FGL_J1028.3+3108_daily_bin1631.fits outfile=/scratch/kocevski/553160/cmap_662083201_662342401_4FGL_J1028.3+3108_daily_bin1631.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/553160/ft1_filtered_4FGL_J1028.3+3108_daily_bin1631.fits scfile=/scratch/kocevski/553160/ft2_4FGL_J1028.3+3108_daily_bin1631.fits outfile=/scratch/kocevski/553160/cmap_HighResolution_662083201_662342401_4FGL_J1028.3+3108_daily_bin1631.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.685       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12253E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8100       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.815       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.623       1.0000         .10000E-03   10000.    
     9 'norm      '    18.552       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79774       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4116       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9344       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9637       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8394       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5762       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8795       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.334       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    23.456       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0647       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .59070       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=   3104.702     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3371 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.641        66.098        .19500E-05    .97952E-04
   2  Prefactor     .10004E-03    23.113        .62012E-05** at limit **
   3  Prefactor     .10000E-03    8.6521        .18347E-06** at limit **
   4  Prefactor     4.8089        3.9238        .16562E-06    .42734E-03
   5  norm          .10000E-03    5.2094        .25926E-06** at limit **
   6  Prefactor     .10000E-03    5.3173        .33658E-06** at limit **
   7  Prefactor     39.801        44.792       -.71543E-06   -.51439E-04
   8  Prefactor     14.625        7.4475       -.19447E-06   -.20950E-04
   9  norm          18.549        14.522       -.13720E-06   -.13243E-04
  10  Prefactor     .10000E-03    46.368        .45234E-06** at limit **
  11  Prefactor     .10000E-03    12.574        .85961E-07** at limit **
  12  Prefactor     .10000E-03    2.4177        .83988E-08** at limit **
  13  Prefactor     .10000E-03    2.5736        .10080E-06** at limit **
  14  Prefactor     .76169        8.9020       -.27939E-05   -.57763E-04
  15  Prefactor     .10000E-03    17.718       -.10340E-07** at limit **
  16  Prefactor     .10000E-03    .78014        .16770E-07** at limit **
  17  Prefactor     3.4039        9.9627       -.15410E-06    .37138E-04
  18  Prefactor     6.9322        21.715       -.22606E-07    .38020E-05
  19  Prefactor     4.9644        9.7037       -.22452E-07    .24876E-05
  20  Prefactor     5.8346        11.081       -.16693E-06    .21794E-04
  21  norm          1.5761        .45306        .14243E-07    .77001E-03
  22  Prefactor     2.8779        4.1947       -.21975E-07    .28166E-03
  23  Prefactor     15.307        24.108       -.70394E-06   -.50528E-04
  24  Prefactor     .10000E-03    18.501       -.10091E-05** at limit **
  25  norm          23.454        19.624       -.16941E-06   -.15026E-04
  26  Normalizat    1.0655        .24482        .51220E-05    .19141E-03
  27  Prefactor     .58996        .24640       -.61032E-05   -.44251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.6406
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 4.80888
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.8009
  Prefactor  = 14.6248
  norm       = 18.549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.761693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40388
  Prefactor  = 6.9322
  Prefactor  = 4.96441
  Prefactor  = 5.83465
  norm       = 1.57614
  Prefactor  = 2.87788
  Prefactor  = 15.3074
  Prefactor  = 0.000100001
  norm       = 23.4541
  Normalizat = 1.06546
  Prefactor  = 0.589963
 **********
 **   18 **HESSE 
 **********

 FCN=   3104.702     FROM HESSE     STATUS=OK           490 CALLS     3861 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.641        66.508        .47747E-04   -1.4025    
   2  Prefactor     .10004E-03    32.949        .34403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6785        .16007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8089        3.9342        .94234E-04   -1.5269    
   5  norm          .10000E-03    5.2295        .12427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4237        .24993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.801        44.855        .63524E-04   -1.4445    
   8  Prefactor     14.625        7.4366        .10299E-03   -1.4943    
   9  norm          18.549        14.520        .92988E-04   -1.4846    
  10  Prefactor     .10000E-03    46.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4292        .84591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5879        .87303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .76169        14.742        .28869E-02   -1.5533    
  15  Prefactor     .10000E-03    17.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .78285        .48035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4039        9.8438        .21902E-03   -1.5339    
  18  Prefactor     6.9322        21.699        .15235E-03   -1.5181    
  19  Prefactor     4.9644        9.6322        .18051E-03   -1.5262    
  20  Prefactor     5.8346        11.020        .16619E-03   -1.5225    
  21  norm          1.5761        .45474        .18945E-04   -1.5457    
  22  Prefactor     2.8779        4.1763        .12164E-03   -1.5369    
  23  Prefactor     15.307        24.159        .10228E-03   -1.4925    
  24  Prefactor     .10000E-03    18.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          23.454        19.602        .82707E-04   -1.4739    
  26  Normalizat    1.0655        .27163        .21552E-03   -.90869    
  27  Prefactor     .58996        .27483        .31215E-03   -1.0801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50093e-08
Minuit parameter uncertainties:
  1  66.5783
  2  0.00232051
  3  2.31507e-05
  4  3.93438
  5  2.64716e-05
  6  3.72154e-05
  7  44.8927
  8  7.43702
  9  14.5226
  10  0.000159134
  11  2.31042e-05
  12  5.41515e-07
  13  8.08573e-06
  14  6.70343
  15  2.0963e-05
  16  1.44292e-06
  17  9.84848
  18  21.7235
  19  9.63525
  20  11.0236
  21  0.45474
  22  4.17674
  23  24.1746
  24  0.000237544
  25  19.6078
  26  0.271984
  27  0.275458
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.591e-04  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:  5.900e-01  2.755e-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.065e+00  2.720e-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: 8.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/553160/likelihoodResults_662083201_662342401_4FGL_J1028.3+3108_daily_bin1631.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) = 3104.70179096
delta logL = -0.000102479566976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3104.70168885
delta logL = -3.69475401385e-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.5183       1.0000          .0000       10.000    
     3 'Normalizat'    1.0655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58997       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=   3104.702     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10184E-03    216.33        .18142E-02** at limit **
   2  Index         2.4541        6.2185        .50000        .69321E-05
   3  Normalizat    1.0655        .13180E-01    .21552E-03   -.11869E-05
   4  Prefactor     .58997        .14619E-01    .31215E-03   -.32232E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101835
  Index      = 2.45408
  Normalizat = 1.06546
  Prefactor  = 0.589968
 **********
 **   18 **HESSE 
 **********

 FCN=   3104.702     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10184E-03    946.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4541        6.3687        .50000       -.53424    
   3  Normalizat    1.0655        .28535E-01    .86207E-05   -.90869    
   4  Prefactor     .58997        .31649E-01    .12486E-04   -1.0801    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00928e-08
Minuit parameter uncertainties:
  1  0.0847098
  2  754.61
  3  0.0285357
  4  0.0316502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/553160': 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) = 3104.70168876
delta logL = -2.84358065983e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.018e-04  8.471e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.454e+00  7.546e+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:  5.900e-01  3.165e-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.065e+00  2.854e-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/553160/cmap_HighResolution_662083201_662342401_4FGL_J1028.3+3108_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', job_status='DONE', photon_flux_upper_limit='8.03e-08', time_completed='2021-12-28 00:21:47.903784', job_id='553160', GAL2='0.59', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1640679707.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='-2.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1631' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:21:47 PST 2021




------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 553250: <4FGL_J1028.3+3108_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1631> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 28 00:06:35 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:06:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:06:37 2021
Terminated at Tue Dec 28 00:20:41 2021
Results reported at Tue Dec 28 00:20:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1631 157.077 31.1389 662083201 662342401 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 :                                   540.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 553160: <4FGL_J1028.3+3108_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1631> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec 28 00:06:30 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:06:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:06:32 2021
Terminated at Tue Dec 28 00:21:48 2021
Results reported at Tue Dec 28 00:21:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1631 157.077 31.1389 662083201 662342401 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 :                                   553.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             218.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

