/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 88 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1736
RA = 157.077, Dec = 31.1389
tmin = 689299201, tmax = 689558401
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='953226', job_status='RUN', time_executed='2022-11-08 00:12:01.912156', time_epoch_executed='1667895121.91' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953226/ft1_4FGL_J1028.3+3108_daily_bin1736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953226/ft2_4FGL_J1028.3+3108_daily_bin1736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953226/ft1_4FGL_J1028.3+3108_daily_bin1736.fits outfile=/scratch/kocevski/953226/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1736.fits ra=157.077 dec=31.1389 rad=12.0 tmin=689299201.0 tmax=689558401.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.59
user 3.34
sys 0.21

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

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

Number of photons that the gtmktime cut: 528

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953226/ft1_filtered_4FGL_J1028.3+3108_daily_bin1736.fits" evtable="EVENTS" scfile=/scratch/kocevski/953226/ft2_4FGL_J1028.3+3108_daily_bin1736.fits sctable="SC_DATA" outfile=/scratch/kocevski/953226/ltcube_689299201_689558401_4FGL_J1028.3+3108_daily_bin1736.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/953226/ft2_4FGL_J1028.3+3108_daily_bin1736.fits
.....................!
real 15.72
user 15.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953226/ft1_filtered_4FGL_J1028.3+3108_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/953226/ft2_4FGL_J1028.3+3108_daily_bin1736.fits sctable="SC_DATA" expcube=/scratch/kocevski/953226/ltcube_689299201_689558401_4FGL_J1028.3+3108_daily_bin1736.fits outfile=/scratch/kocevski/953226/expmap_689299201_689558401_4FGL_J1028.3+3108_daily_bin1736.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/953226/ltcube_689299201_689558401_4FGL_J1028.3+3108_daily_bin1736.fits
.....................!
real 190.63
user 185.55
sys 4.75

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/953226/ft1_filtered_4FGL_J1028.3+3108_daily_bin1736.fits scfile=/scratch/kocevski/953226/ft2_4FGL_J1028.3+3108_daily_bin1736.fits outfile=/scratch/kocevski/953226/cmap_689299201_689558401_4FGL_J1028.3+3108_daily_bin1736.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.54
user 0.37
sys 0.16

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953226/ft1_filtered_4FGL_J1028.3+3108_daily_bin1736.fits', '/scratch/kocevski/953226/ft2_4FGL_J1028.3+3108_daily_bin1736.fits', expMap='/scratch/kocevski/953226/expmap_689299201_689558401_4FGL_J1028.3+3108_daily_bin1736.fits', expCube='/scratch/kocevski/953226/ltcube_689299201_689558401_4FGL_J1028.3+3108_daily_bin1736.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953226/Model_4FGL_J1028.3+3108_daily_bin1736.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  0.000e+00  1.000e+06 ( 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/953226/ft1_filtered_4FGL_J1028.3+3108_daily_bin1736.fits
Spacecraft file(s): /scratch/kocevski/953226/ft2_4FGL_J1028.3+3108_daily_bin1736.fits
Exposure map: /scratch/kocevski/953226/expmap_689299201_689558401_4FGL_J1028.3+3108_daily_bin1736.fits
Exposure cube: /scratch/kocevski/953226/ltcube_689299201_689558401_4FGL_J1028.3+3108_daily_bin1736.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953226/Model_4FGL_J1028.3+3108_daily_bin1736.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) = 5764.27505367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.772       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.400       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15406E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .15306E-05   1.0000          .0000       .10000E+07
     5 'norm      '    2.7239       1.0000          .0000       .10000E+07
     6 'Prefactor '    .86808E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .70312E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .89665E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    30.897       1.0000          .0000       .10000E+07
    10 'Prefactor '    36.510       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.0495       1.0000          .0000       .10000E+07
    12 'Prefactor '    .95507E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .30059E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .36319E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .14266E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.0179       1.0000          .0000       .10000E+07
    17 'Prefactor '    16.258       1.0000          .0000       .10000E+07
    18 'norm      '    1.5497       1.0000          .0000       .10000E+07
    19 'Prefactor '    11.292       1.0000          .0000       .10000E+07
    20 'Prefactor '    .23415E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .68480E-04   1.0000          .0000       .10000E+07
    22 'norm      '    6.3941       1.0000          .0000       .10000E+07
    23 'Normalizat'    .99427       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72412       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5764.271     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1968 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.865        5.5085        .49012E-06   -.59928E-01
   2  Prefactor     10.337        6.4024        .13734E-06    .34523E-01
   3  Prefactor     .26090E-08    2.5993        .57678E-06** at limit **
   4  Prefactor      .0000        1.9718       -.41989E-08** at limit **
   5  norm          2.6832        6.2953       -.74372E-07   -.90881E-02
   6  Prefactor     .13856E-06    6.0763        .17204E-05** at limit **
   7  Prefactor      .0000        4.0664        .72011E-06** at limit **
   8  norm          .59397E-08    5.8058       -.10702E-05** at limit **
   9  Prefactor     30.561        38.400       -.12231E-05    .11272    
  10  Prefactor     36.166        29.316       -.43571E-06   -.15342    
  11  Prefactor     5.0693        5.5125       -.13918E-06    .41990E-02
  12  Prefactor     .27756E-09    2.4217        .48966E-06** at limit **
  13  Prefactor      .0000        .64463        .39755E-07** at limit **
  14  Prefactor     .38858E-09    2.2759       -.54934E-06** at limit **
  15  Prefactor     .14710E-07    2.8750       -.11315E-05** at limit **
  16  Prefactor     2.0162        2.9322        .85459E-06    .42415E-01
  17  Prefactor     16.260        1.3003        .24555E-07    .11566E-01
  18  norm          1.5502        .34177       -.27288E-07    .25070E-02
  19  Prefactor     11.295        3.3990       -.25193E-06   -.72266E-03
  20  Prefactor     .74385E-07    9.1497       -.60398E-06** at limit **
  21  Prefactor     .17986E-07    3.5558       -.18917E-05** at limit **
  22  norm          6.3807        3.4813       -.32567E-07   -.33131E-01
  23  Normalizat    .99443        .17471        .16050E-04   -.90575E-05
  24  Prefactor     .72449        .19346       -.95894E-05   -.52482E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8653
  Prefactor  = 10.3375
  Prefactor  = 2.60902e-09
  Prefactor  = 0
  norm       = 2.68318
  Prefactor  = 1.38556e-07
  Prefactor  = 0
  norm       = 5.93969e-09
  Prefactor  = 30.5611
  Prefactor  = 36.1662
  Prefactor  = 5.06925
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 1.47105e-08
  Prefactor  = 2.01619
  Prefactor  = 16.2604
  norm       = 1.55019
  Prefactor  = 11.2949
  Prefactor  = 7.43849e-08
  Prefactor  = 1.79856e-08
  norm       = 6.3807
  Normalizat = 0.994435
  Prefactor  = 0.724495
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.271     FROM HESSE     STATUS=OK           451 CALLS     2419 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.865        19.187        .28003E-03   -1.5636    
   2  Prefactor     10.337        6.9088        .31045E-03   -1.5644    
   3  Prefactor     .26090E-08    2.6170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        .84408        .25893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6832        6.7326        .61677E-03   -1.5675    
   6  Prefactor     .13856E-06    7.5083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        4.0537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .59397E-08    5.9997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.561        53.439        .17993E-03   -1.5597    
  10  Prefactor     36.166        41.065        .16552E-03   -1.5588    
  11  Prefactor     5.0693        5.5982        .44724E-03   -1.5663    
  12  Prefactor     .27756E-09    2.4225        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .64291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .38858E-09    7.6354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .14710E-07    7.6522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0162        9.1683        .72830E-03   -1.5680    
  17  Prefactor     16.260        10.637        .24812E-03   -1.5627    
  18  norm          1.5502        .34136        .45701E-03   -1.5683    
  19  Prefactor     11.295        3.5262        .29788E-03   -1.5641    
  20  Prefactor     .74385E-07    9.3723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .17986E-07    8.0875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.3807        7.1009        .39669E-03   -1.5657    
  23  Normalizat    .99443        .15120        .46095E-01   -.93217    
  24  Prefactor     .72449        .16804        .63586E-01   -1.0257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47812e-06
Minuit parameter uncertainties:
  1  19.1876
  2  6.90881
  3  0.000165908
  4  8.76122e-06
  5  6.73264
  6  0.0020398
  7  8.53487e-06
  8  0.000376716
  9  53.4394
  10  41.0655
  11  5.59824
  12  5.29624e-05
  13  7.61083e-08
  14  0.000108922
  15  0.00067065
  16  8.59885
  17  10.6369
  18  0.341359
  19  3.52619
  20  0.00166981
  21  0.000763106
  22  7.10088
  23  0.151269
  24  0.16816
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.056e+01  5.344e+01  0.000e+00  1.000e+06 ( 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:  7.245e-01  1.682e-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.944e-01  1.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/953226/likelihoodResults_689299201_689558401_4FGL_J1028.3+3108_daily_bin1736.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) = 5764.27098496
delta logL = 0.000151794942212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5764.27084352
delta logL = 0.000293236997095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.436       1.0000          .0000       .10000E+07
     2 'Index     '    2.2603       1.0000          .0000       10.000    
     3 'Normalizat'    .99397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72463       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=   5764.271     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      266 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.413        80.080        .73738E-05    .93246E-03
   2  Index         2.2603        1.2331        .96854E-02    .50882E-04
   3  Normalizat    .99391        .16893        .21178E-03   -.15717E-02
   4  Prefactor     .72497        .19464        .28120E-03   -.15486E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.413
  Index      = 2.26031
  Normalizat = 0.993914
  Prefactor  = 0.724965
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.271     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.413        69.160        .14748E-05   -1.5599    
   2  Index         2.2603        1.0683        .38742E-03   -.57990    
   3  Normalizat    .99391        .16847        .42356E-04   -.93235    
   4  Prefactor     .72497        .19404        .56241E-04   -1.0256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05658e-09
Minuit parameter uncertainties:
  1  69.1617
  2  1.0803
  3  0.168563
  4  0.194222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953226': 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) = 5764.27083944
delta logL = 0.000297310526548

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  2.941e+01  6.916e+01  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  2.260e+00  1.080e+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:  7.250e-01  1.942e-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.939e-01  1.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
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/953226/cmap_HighResolution_689299201_689558401_4FGL_J1028.3+3108_daily_bin1736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.11e-08', time_completed='2022-11-08 00:22:06.739859', job_id='953226', GAL2='0.72', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1667895726.74', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.97e-04', ts2='0.39', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1736' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Nov  8 00:22:06 PST 2022

='daily';

Database successfully updated.


Analysis Complete.


Tue Nov  8 00:21:59 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 953203: <4FGL_J1028.3+3108_daily_bin1736> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1736> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Nov  8 00:06:34 2022
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  8 00:08:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  8 00:08:38 2022
Terminated at Tue Nov  8 00:22:00 2022
Results reported at Tue Nov  8 00:22:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1736 157.077 31.1389 689299201 689558401 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 :                                   594.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            926 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 953226: <4FGL_J1028.3+3108_daily_bin1736> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1736> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Nov  8 00:06:35 2022
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  8 00:08:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  8 00:08:44 2022
Terminated at Tue Nov  8 00:22:07 2022
Results reported at Tue Nov  8 00:22:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1736 157.077 31.1389 689299201 689558401 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 :                                   601.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            932 sec.

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

