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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1110
RA = 157.077, Dec = 31.1389
tmin = 527040001, tmax = 527299201
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='902697', job_status='RUN', time_executed='2021-09-01 23:12:59.858580', time_epoch_executed='1630563179.86' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902697

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902697/ft1_4FGL_J1028.3+3108_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902697/ft2_4FGL_J1028.3+3108_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902697/ft1_4FGL_J1028.3+3108_daily_bin1110.fits outfile=/scratch/kocevski/902697/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1110.fits ra=157.077 dec=31.1389 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.10
user 5.79
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902697/ft2_4FGL_J1028.3+3108_daily_bin1110.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/902697/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/902697/ft1_filtered_4FGL_J1028.3+3108_daily_bin1110.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.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902697/ft1_filtered_4FGL_J1028.3+3108_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/902697/ft2_4FGL_J1028.3+3108_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/902697/ltcube_527040001_527299201_4FGL_J1028.3+3108_daily_bin1110.fits outfile=/scratch/kocevski/902697/expmap_527040001_527299201_4FGL_J1028.3+3108_daily_bin1110.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/902697/ltcube_527040001_527299201_4FGL_J1028.3+3108_daily_bin1110.fits
.....................!
real 190.72
user 186.11
sys 4.22

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/902697/ft1_filtered_4FGL_J1028.3+3108_daily_bin1110.fits scfile=/scratch/kocevski/902697/ft2_4FGL_J1028.3+3108_daily_bin1110.fits outfile=/scratch/kocevski/902697/cmap_527040001_527299201_4FGL_J1028.3+3108_daily_bin1110.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.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4359       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.486       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.760       1.0000         .10000E-03   10000.    
    10 'Prefactor '    92.665       1.0000         .10000E-03   10000.    
    11 'Prefactor '    85.347       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0546       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4655       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10852E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .43081E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.675       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.405       1.0000         .10000E-03   10000.    
    21 'norm      '    .66131       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8029       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3009       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.055       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0680       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1240       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=   5237.960     FROM MIGRAD    STATUS=CONVERGED   1163 CALLS     4289 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.848        .18142E-02** at limit **
   2  Prefactor     8.4344        8.6261        .69011E-03    .85829E-04
   3  Prefactor     .10000E-03    5.4508        .16455E-02** at limit **
   4  Prefactor     .10000E-03    4.3796        .20493E-02** at limit **
   5  norm          16.484        9.7034        .98642E-04    .45524E-04
   6  Prefactor     .10000E-03    1.5467        .87613E-03** at limit **
   7  Prefactor     .10000E-03    15.149        .18142E-02** at limit **
   8  Prefactor     .10000E-03    4.0679        .27953E-03** at limit **
   9  norm          10.761        10.398        .12214E-03   -.11728E-04
  10  Prefactor     92.595        92.516        .20874E-03   -.13616E-05
  11  Prefactor     85.376        43.987        .21742E-03   -.32366E-04
  12  Prefactor     1.0558        8.3217        .37754E-03   -.27372E-04
  13  Prefactor     .10000E-03    3.0017        .12202E-02** at limit **
  14  Prefactor     3.4659        6.4603        .21723E-03    .14863E-04
  15  Prefactor     .10000E-03    87.771        .18142E-02** at limit **
  16  Prefactor     .10000E-03    .86079        .65349E-03** at limit **
  17  Prefactor     .10000E-03    28.967        .36285E-03** at limit **
  18  Prefactor     .10000E-03    25.926        .10409    ** at limit **
  19  Prefactor     14.676        12.481        .10455E-03    .30446E-04
  20  Prefactor     12.405        13.848        .11373E-03    .17793E-04
  21  norm          .66131        .32885        .27125E-04   -.15088E-04
  22  Prefactor     1.8030        3.6768        .18162E-03    .64474E-05
  23  Prefactor     3.3016        11.727        .11142E-02    .11316E-04
  24  Prefactor     17.055        17.231        .96983E-04   -.44545E-05
  25  norm          .10000E-03    4.8238        .15520E-02** at limit **
  26  Normalizat    1.0679        .24636        .25264E-03    .15889E-03
  27  Prefactor     1.1240        .26638        .28239E-03    .73029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.43445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7605
  Prefactor  = 92.5946
  Prefactor  = 85.3758
  Prefactor  = 1.0558
  Prefactor  = 0.0001
  Prefactor  = 3.46586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6757
  Prefactor  = 12.4049
  norm       = 0.661307
  Prefactor  = 1.80299
  Prefactor  = 3.30162
  Prefactor  = 17.0549
  norm       = 0.0001
  Normalizat = 1.06795
  Prefactor  = 1.124
 **********
 **   18 **HESSE 
 **********

 FCN=   5237.960     FROM HESSE     STATUS=OK           474 CALLS     4763 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.850        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4344        8.6238        .27604E-04   -1.5127    
   3  Prefactor     .10000E-03    5.4518        .32910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3973        .40986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.484        9.7033        .39457E-05   -1.4896    
   6  Prefactor     .10000E-03    1.5468        .17523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0681        .55906E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.761        10.394        .48856E-05   -1.5052    
  10  Prefactor     92.595        92.504        .83495E-05   -1.3780    
  11  Prefactor     85.376        43.985        .86969E-05   -1.3857    
  12  Prefactor     1.0558        8.3066        .15102E-04   -1.5502    
  13  Prefactor     .10000E-03    3.0019        .24404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4659        6.4597        .86893E-05   -1.5336    
  15  Prefactor     .10000E-03    87.785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .86081        .13070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.969        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.747        .11179       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.676        12.481        .41822E-05   -1.4942    
  20  Prefactor     12.405        13.845        .45494E-05   -1.5003    
  21  norm          .66131        .32882        .10850E-05   -1.5545    
  22  Prefactor     1.8030        3.6756        .72648E-05   -1.5439    
  23  Prefactor     3.3016        11.720        .44567E-04   -1.5345    
  24  Prefactor     17.055        17.228        .38793E-05   -1.4882    
  25  norm          .10000E-03    4.8238        .31040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0679        .24652        .10106E-04   -.90788    
  27  Prefactor     1.1240        .26667        .11296E-04   -.88703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11711e-10
Minuit parameter uncertainties:
  1  1.0808e-05
  2  8.62507
  3  5.18352e-06
  4  4.78725e-05
  5  9.70424
  6  1.46167e-06
  7  3.94245e-06
  8  1.45896e-06
  9  10.3962
  10  92.6484
  11  44.0019
  12  5.92373
  13  1.19784e-05
  14  6.46105
  15  0.000155444
  16  5.30189e-07
  17  2.10522e-05
  18  3.18068e-05
  19  12.483
  20  13.8488
  21  0.328823
  22  3.67609
  23  11.7277
  24  17.2331
  25  2.42511e-06
  26  0.246784
  27  0.266983
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  9.259e+01  9.265e+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.124e+00  2.670e-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.068e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 157.077 31.139
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.95e-08 +/- 4.95e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 2.09e-05

TS (Fixed Index): 1.30
Ra Dec: 157.077 31.139
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902697/likelihoodResults_527040001_527299201_4FGL_J1028.3+3108_daily_bin1110.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) = 5235.38632752
delta logL = 2.57390921683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5235.36223886
delta logL = 2.59799787542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5849       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7950       1.0000          .0000       10.000    
     3 'Normalizat'    .92472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2271       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=   5235.362     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      310 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5779        77.240        .87771E-04   -.21938E-02
   2  Index         3.7954        2.4360        .24420E-02   -.64125E-03
   3  Normalizat    .92468        .23326        .26833E-03    .18943E-03
   4  Prefactor     1.2271        .26512        .27148E-03    .25502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.57792
  Index      = 3.79539
  Normalizat = 0.924682
  Prefactor  = 1.22706
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.362     FROM HESSE     STATUS=OK            23 CALLS      333 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5779        16.491        .35109E-05   -1.5157    
   2  Index         3.7954        .86375        .97682E-04   -.24332    
   3  Normalizat    .92468        .24198        .10733E-04   -.95598    
   4  Prefactor     1.2271        .27056        .54297E-04   -.85502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11486e-09
Minuit parameter uncertainties:
  1  16.5005
  2  0.86838
  3  0.242267
  4  0.270864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902697': 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) = 5235.36223871
delta logL = 2.59799803293

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  7.578e+00  1.650e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  3.795e+00  8.684e-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.227e+00  2.709e-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.247e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.92
Ra Dec: 157.077 31.139
Photon Index (Free Index): 3.80 +/- 0.87
Photon Flux (Free Index): 1.67e-07 +/- 8.18e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.27e-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/902697/cmap_HighResolution_527040001_527299201_4FGL_J1028.3+3108_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.95e-08', energy_flux2='2.60e-05', photon_flux_error='4.95e-08', dlogl='2.60e+00', energy_flux='2.09e-05', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-09-01 23:25:57.818903', photon_index_error2='0.87', photon_index2='3.80', ts='1.30', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.27e-05', EG='1.07', time_epoch_completed='1630563957.82', return_code='0', job_id='902697', GAL2='1.23', EG2='0.92', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='8.18e-08', ts2='6.92', photon_index='2.23' WHERE bin_id='1110' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:25:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 902697: <4FGL_J1028.3+3108_daily_bin1110> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1110> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 23:10:26 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:11:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 23:11:27 2021
Terminated at Wed Sep  1 23:25:58 2021
Results reported at Wed Sep  1 23:25:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1110 157.077 31.1389 527040001 527299201 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 :                                   772.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            932 sec.

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

