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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin461
RA = 157.077, Dec = 31.1389
tmin = 358819201, tmax = 359078401
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='898438', job_status='RUN', time_executed='2021-09-01 22:58:27.271393', time_epoch_executed='1630562307.27' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898438

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898438/ft1_4FGL_J1028.3+3108_daily_bin461.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898438/ft2_4FGL_J1028.3+3108_daily_bin461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898438/ft1_4FGL_J1028.3+3108_daily_bin461.fits outfile=/scratch/kocevski/898438/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin461.fits ra=157.077 dec=31.1389 rad=12.0 tmin=358819201.0 tmax=359078401.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 5.44
user 5.11
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898438/ft1_filtered_4FGL_J1028.3+3108_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/898438/ft2_4FGL_J1028.3+3108_daily_bin461.fits sctable="SC_DATA" expcube=/scratch/kocevski/898438/ltcube_358819201_359078401_4FGL_J1028.3+3108_daily_bin461.fits outfile=/scratch/kocevski/898438/expmap_358819201_359078401_4FGL_J1028.3+3108_daily_bin461.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/898438/ltcube_358819201_359078401_4FGL_J1028.3+3108_daily_bin461.fits
.....................!
real 192.21
user 186.53
sys 5.11

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/898438/ft1_filtered_4FGL_J1028.3+3108_daily_bin461.fits scfile=/scratch/kocevski/898438/ft2_4FGL_J1028.3+3108_daily_bin461.fits outfile=/scratch/kocevski/898438/cmap_358819201_359078401_4FGL_J1028.3+3108_daily_bin461.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898438/ft1_filtered_4FGL_J1028.3+3108_daily_bin461.fits scfile=/scratch/kocevski/898438/ft2_4FGL_J1028.3+3108_daily_bin461.fits outfile=/scratch/kocevski/898438/cmap_HighResolution_358819201_359078401_4FGL_J1028.3+3108_daily_bin461.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.980       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.006       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84173       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5980       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20609E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2338       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3866       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20830E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .62071       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9936       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.807       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4379       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3603       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.227       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3124       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .56863       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=   5112.711     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3280 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.988        35.147       -.47538E-05    .46129E-04
   2  Prefactor     13.008        9.7639        .15962E-05   -.21077E-03
   3  Prefactor     .10000E-03    4.1963       -.34368E-07** at limit **
   4  Prefactor     .84209        2.0495       -.69372E-06   -.94519E-03
   5  norm          3.6034        10.486       -.14055E-06   -.19190E-03
   6  Prefactor     .10000E-03    1.9362        .12277E-06** at limit **
   7  Prefactor     .10000E-03    71.943        .16522E-05** at limit **
   8  Prefactor     2.2335        5.5265       -.10049E-05   -.53236E-03
   9  norm          3.3785        8.5224       -.81487E-05    .70739E-04
  10  Prefactor     .10000E-03    369.95       -.86174E-05** at limit **
  11  Prefactor     .10000E-03    19.014        .76412E-06** at limit **
  12  Prefactor     .61349        3.8291        .13011E-05   -.53666E-03
  13  Prefactor     .10000E-03    3.4412        .14164E-06** at limit **
  14  Prefactor     .10000E-03    7.5955       -.38554E-05** at limit **
  15  Prefactor     .10000E-03    27.624       -.80207E-06** at limit **
  16  Prefactor     4.9952        2.9446       -.15240E-06    .82821E-04
  17  Prefactor     10.809        8.1813        .82129E-06   -.76305E-04
  18  Prefactor     .10000E-03    7.6320        .35035E-05** at limit **
  19  Prefactor     5.4391        7.9258        .20474E-06   -.78095E-04
  20  Prefactor     .10000E-03    4.6591        .11829E-06** at limit **
  21  norm          1.3603        .33662       -.12311E-07    .48819E-04
  22  Prefactor     .10000E-03    1.5414        .19852E-07** at limit **
  23  Prefactor     13.231        12.108        .47309E-06   -.84108E-04
  24  Prefactor     .10000E-03    5.1461       -.57244E-07** at limit **
  25  norm          .10000E-03    9.0092        .48586E-06** at limit **
  26  Normalizat    1.3123        .19240        .10374E-05    .63861E-05
  27  Prefactor     .56850        .20308       -.42564E-06    .54351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9883
  Prefactor  = 13.0085
  Prefactor  = 0.0001
  Prefactor  = 0.842092
  norm       = 3.60339
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.23355
  norm       = 3.37852
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.613494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.99522
  Prefactor  = 10.809
  Prefactor  = 0.0001
  Prefactor  = 5.43909
  Prefactor  = 0.0001
  norm       = 1.36034
  Prefactor  = 0.0001
  Prefactor  = 13.2307
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.31227
  Prefactor  = 0.568498
 **********
 **   18 **HESSE 
 **********

 FCN=   5112.711     FROM HESSE     STATUS=OK           490 CALLS     3770 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.988        35.111        .10348E-03   -1.4933    
   2  Prefactor     13.008        9.7175        .11107E-03   -1.4986    
   3  Prefactor     .10000E-03    4.2204        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .84209        2.0352        .15397E-03   -1.5524    
   5  norm          3.6034        10.453        .21302E-03   -1.5328    
   6  Prefactor     .10000E-03    1.9465        .96804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    73.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2335        5.5947        .24340E-03   -1.5409    
   9  norm          3.3785        8.3717        .21986E-03   -1.5340    
  10  Prefactor     .10000E-03    377.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .61349        6.7473        .25117E-02   -1.5551    
  13  Prefactor     .10000E-03    3.4773        .12944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9952        2.9426        .89295E-04   -1.5261    
  17  Prefactor     10.809        8.1733        .12187E-03   -1.5050    
  18  Prefactor     .10000E-03    7.5797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4391        7.9133        .17232E-03   -1.5241    
  20  Prefactor     .10000E-03    4.6690        .15072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3603        .33725        .19822E-04   -1.5475    
  22  Prefactor     .10000E-03    1.5736        .86618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.231        12.109        .11014E-03   -1.4980    
  24  Prefactor     .10000E-03    5.1482        .15840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    9.0400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3123        .21708        .20518E-03   -.83201    
  27  Prefactor     .56850        .22682        .33152E-03   -1.0893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80547e-09
Minuit parameter uncertainties:
  1  35.1589
  2  9.71869
  3  2.56128e-06
  4  2.03538
  5  10.4587
  6  1.2107e-05
  7  0.000452336
  8  5.59597
  9  8.37456
  10  0.00182849
  11  2.11137e-05
  12  4.06936
  13  2.05685e-05
  14  0.000108916
  15  7.57708e-05
  16  2.94266
  17  8.17411
  18  9.78681e-05
  19  7.91484
  20  6.35246e-06
  21  0.337249
  22  4.11562e-06
  23  12.1116
  24  1.39303e-06
  25  2.82659e-05
  26  0.217231
  27  0.227181
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.828e-03  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.685e-01  2.272e-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.312e+00  2.172e-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: 7.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898438/likelihoodResults_358819201_359078401_4FGL_J1028.3+3108_daily_bin461.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) = 5112.71150043
delta logL = -1.24756415971e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5112.71150043
delta logL = -1.24741318359e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2344       1.0000          .0000       10.000    
     3 'Normalizat'    1.3123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56850       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=   5112.451     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      271 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.263        93.393        .90712E-02    .26865E-04
   2  Index         1.3489        .93597        .24595       -.24884E-04
   3  Normalizat    1.3145        .18032        .32589E-01   -.19754E-03
   4  Prefactor     .55856        .20055        .75454E-01   -.69969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.2627
  Index      = 1.34891
  Normalizat = 1.31447
  Prefactor  = 0.558563
 **********
 **   18 **HESSE 
 **********

 FCN=   5112.451     FROM HESSE     STATUS=OK            31 CALLS      302 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.263        73.116        .36285E-03   -1.4470    
   2  Index         1.3489        .85431        .13826E-01   -.81864    
   3  Normalizat    1.3145        .20067        .20498E-03   -.83136    
   4  Prefactor     .55856        .22288        .33410E-03   -1.0936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.21796e-10
Minuit parameter uncertainties:
  1  73.2876
  2  0.863472
  3  0.200785
  4  0.223227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898438': 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) = 5112.45104191
delta logL = 0.260446045474

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.826e+01  7.329e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.349e+00  8.635e-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:  5.586e-01  2.232e-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.314e+00  2.008e-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/898438/cmap_HighResolution_358819201_359078401_4FGL_J1028.3+3108_daily_bin461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', job_status='DONE', photon_flux_upper_limit='7.86e-08', time_completed='2021-09-01 23:10:16.156551', job_id='898438', GAL2='0.56', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630563016.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='2.60e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='461' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:10:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 898438: <4FGL_J1028.3+3108_daily_bin461> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin461> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 22:55:36 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:58:12 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:58:12 2021
Terminated at Wed Sep  1 23:10:16 2021
Results reported at Wed Sep  1 23:10:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin461 157.077 31.1389 358819201 359078401 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 :                                   704.12 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             329.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            880 sec.

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

