/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 0 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 = 7423
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1028.3+3108_daily_bin228
RA = 157.077, Dec = 31.1389
tmin = 298425601, tmax = 298684801
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='896964', job_status='RUN', time_executed='2021-09-01 22:51:38.153628', time_epoch_executed='1630561898.15' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896964

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896964/ft1_4FGL_J1028.3+3108_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896964/ft2_4FGL_J1028.3+3108_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896964/ft1_4FGL_J1028.3+3108_daily_bin228.fits outfile=/scratch/kocevski/896964/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin228.fits ra=157.077 dec=31.1389 rad=12.0 tmin=298425601.0 tmax=298684801.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.33
user 3.10
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896964/ft1_filtered_4FGL_J1028.3+3108_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/896964/ft2_4FGL_J1028.3+3108_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/896964/ltcube_298425601_298684801_4FGL_J1028.3+3108_daily_bin228.fits outfile=/scratch/kocevski/896964/expmap_298425601_298684801_4FGL_J1028.3+3108_daily_bin228.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/896964/ltcube_298425601_298684801_4FGL_J1028.3+3108_daily_bin228.fits
.....................!
real 191.32
user 186.52
sys 4.25

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/896964/ft1_filtered_4FGL_J1028.3+3108_daily_bin228.fits scfile=/scratch/kocevski/896964/ft2_4FGL_J1028.3+3108_daily_bin228.fits outfile=/scratch/kocevski/896964/cmap_298425601_298684801_4FGL_J1028.3+3108_daily_bin228.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896964/ft1_filtered_4FGL_J1028.3+3108_daily_bin228.fits scfile=/scratch/kocevski/896964/ft2_4FGL_J1028.3+3108_daily_bin228.fits outfile=/scratch/kocevski/896964/cmap_HighResolution_298425601_298684801_4FGL_J1028.3+3108_daily_bin228.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.56
user 0.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9189       1.0000         .10000E-03   10000.    
     5 'norm      '    15.337       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8133       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28886E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.7606       1.0000         .10000E-03   10000.    
    10 'Prefactor '    83.360       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.134       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.261       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4496       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.496       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.261       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4889       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3673       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18714E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    17.934       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .82919       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0754       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=   6488.623     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3275 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.652       -.21535E-06** at limit **
   2  Prefactor     .10000E-03    4.0765        .89612E-08** at limit **
   3  Prefactor     .10000E-03    11.930        .58911E-06** at limit **
   4  Prefactor     2.9183        2.3591        .97839E-07    .95946E-05
   5  norm          15.337        8.7535        .44242E-07   -.44356E-05
   6  Prefactor     4.8166        4.8446        .50770E-06    .20238E-03
   7  Prefactor     .10000E-03    11.311        .15873E-06** at limit **
   8  Prefactor     .10000E-03    2.9265       -.23793E-06** at limit **
   9  norm          6.7610        6.6315        .44447E-07    .14964E-04
  10  Prefactor     83.334        75.184       -.31327E-06   -.89271E-04
  11  Prefactor     .10000E-03    14.271        .24134E-06** at limit **
  12  Prefactor     10.134        5.4599        .11237E-06    .15430E-04
  13  Prefactor     .10000E-03    4.2123        .52223E-07** at limit **
  14  Prefactor     .10000E-03    2.4945        .42126E-07** at limit **
  15  Prefactor     30.262        31.729        .23981E-06    .21249E-04
  16  Prefactor     1.4495        2.2249        .36682E-06    .10674E-03
  17  Prefactor     .10000E-03    6.1812        .11245E-06** at limit **
  18  Prefactor     12.486        20.122       -.25752E-06   -.11289E-03
  19  Prefactor     25.262        13.542       -.17289E-06    .93866E-05
  20  Prefactor     4.4936        13.369       -.45641E-05    .29393E-04
  21  norm          2.3673        .39671        .66834E-08   -.22352E-04
  22  Prefactor     .10010E-03    1.5428       -.48932E-07** at limit **
  23  Prefactor     .10000E-03    5.5434        .17246E-06** at limit **
  24  Prefactor     .10000E-03    3.8144        .46894E-07** at limit **
  25  norm          17.934        12.736        .51103E-07    .70278E-06
  26  Normalizat    .82936        .17707       -.11578E-05    .29291E-04
  27  Prefactor     1.0752        .19213        .15138E-06   -.48985E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.91827
  norm       = 15.3367
  Prefactor  = 4.81664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.76102
  Prefactor  = 83.3338
  Prefactor  = 0.0001
  Prefactor  = 10.1335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2621
  Prefactor  = 1.44953
  Prefactor  = 0.0001
  Prefactor  = 12.4857
  Prefactor  = 25.2621
  Prefactor  = 4.49362
  norm       = 2.36727
  Prefactor  = 0.000100101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.9341
  Normalizat = 0.829357
  Prefactor  = 1.07524
 **********
 **   18 **HESSE 
 **********

 FCN=   6488.623     FROM HESSE     STATUS=OK           492 CALLS     3767 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1600        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9183        2.3514        .10590E-03   -1.5366    
   5  norm          15.337        8.7663        .10227E-03   -1.4925    
   6  Prefactor     4.8166        4.3701        .14834E-03   -1.5269    
   7  Prefactor     .10000E-03    11.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.724        .23192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.7610        6.6265        .15432E-03   -1.5188    
  10  Prefactor     83.334        75.001        .43995E-04   -1.3880    
  11  Prefactor     .10000E-03    14.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.134        5.4643        .12587E-03   -1.5071    
  13  Prefactor     .10000E-03    4.2956        .16123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5096        .12420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.262        31.708        .72835E-04   -1.4607    
  16  Prefactor     1.4495        2.1909        .13938E-03   -1.5467    
  17  Prefactor     .10000E-03    6.2022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.486        20.088        .11332E-03   -1.5001    
  19  Prefactor     25.262        13.505        .79702E-04   -1.4702    
  20  Prefactor     4.4936        13.295        .19004E-03   -1.5284    
  21  norm          2.3673        .39727        .20114E-04   -1.5400    
  22  Prefactor     .10010E-03    9.2960        .18974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.5578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.8150        .15364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          17.934        12.733        .94576E-04   -1.4861    
  26  Normalizat    .82936        .20523        .26401E-03   -.98989    
  27  Prefactor     1.0752        .22606        .27084E-03   -.90262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09686e-08
Minuit parameter uncertainties:
  1  0.000110001
  2  5.71188e-06
  3  8.16115e-05
  4  2.35152
  5  8.76699
  6  4.37039
  7  3.89189e-05
  8  9.91464e-05
  9  6.62719
  10  75.0863
  11  7.78124e-05
  12  5.46454
  13  1.28191e-06
  14  1.71528e-06
  15  31.7256
  16  2.19103
  17  1.48958e-06
  18  20.0985
  19  13.5064
  20  13.3039
  21  0.39727
  22  0.00193966
  23  3.4771e-05
  24  7.77108e-06
  25  12.7352
  26  0.205418
  27  0.226258
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.075e+00  2.263e-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:  8.294e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 157.077 31.139
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.46e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.70e-05

TS (Fixed Index): 1.61
Ra Dec: 157.077 31.139
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896964/likelihoodResults_298425601_298684801_4FGL_J1028.3+3108_daily_bin228.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) = 6488.37032669
delta logL = 0.252373929068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6488.34834046
delta logL = 0.274360162653

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.606       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6720       1.0000          .0000       10.000    
     3 'Normalizat'    .80443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0923       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=   6488.348     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      304 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.615        81.233        .58732E-04    .66510E-04
   2  Index         2.6725        .77671        .49183E-02    .75441E-04
   3  Normalizat    .80421        .19740        .26768E-03    .58808E-03
   4  Prefactor     1.0925        .22495        .26889E-03    .67401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.6145
  Index      = 2.67254
  Normalizat = 0.804213
  Prefactor  = 1.09254
 **********
 **   18 **HESSE 
 **********

 FCN=   6488.348     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.615        66.262        .11746E-04   -1.4341    
   2  Index         2.6725        .63304        .19673E-03   -.48419    
   3  Normalizat    .80421        .19680        .53536E-04   -.99913    
   4  Prefactor     1.0925        .22409        .53778E-04   -.89705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39376e-10
Minuit parameter uncertainties:
  1  66.3674
  2  0.635221
  3  0.196975
  4  0.224279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896964': 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) = 6488.34833871
delta logL = 0.274361906143

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.661e+01  6.637e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.673e+00  6.352e-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.093e+00  2.243e-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:  8.042e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 157.077 31.139
Photon Index (Free Index): 2.67 +/- 0.64
Photon Flux (Free Index): 6.58e-08 +/- 5.43e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.32e-05

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/896964/cmap_HighResolution_298425601_298684801_4FGL_J1028.3+3108_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.55e-03', comment='SUCCESS', photon_flux='4.46e-08', energy_flux2='1.62e-05', photon_flux_error='4.01e-08', dlogl='2.74e-01', energy_flux='1.88e-05', photon_flux2='6.58e-08', job_status='DONE', time_completed='2021-09-01 23:04:41.546963', photon_index_error2='0.64', photon_index2='2.67', ts='1.61', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.32e-05', EG='0.83', time_epoch_completed='1630562681.55', return_code='0', job_id='896964', GAL2='1.09', EG2='0.80', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='5.43e-08', ts2='2.14', photon_index='2.23' WHERE bin_id='228' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:04:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 896964: <4FGL_J1028.3+3108_daily_bin228> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin228 157.077 31.1389 298425601 298684801 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            850 sec.

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

