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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1059
RA = 157.077, Dec = 31.1389
tmin = 513820801, tmax = 514080001
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='902621', job_status='RUN', time_executed='2021-09-01 23:13:56.760511', time_epoch_executed='1630563236.76' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902621

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902621/ft1_4FGL_J1028.3+3108_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902621/ft2_4FGL_J1028.3+3108_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902621/ft1_4FGL_J1028.3+3108_daily_bin1059.fits outfile=/scratch/kocevski/902621/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1059.fits ra=157.077 dec=31.1389 rad=12.0 tmin=513820801.0 tmax=514080001.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.79
user 3.52
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902621/ft1_filtered_4FGL_J1028.3+3108_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/902621/ft2_4FGL_J1028.3+3108_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/902621/ltcube_513820801_514080001_4FGL_J1028.3+3108_daily_bin1059.fits outfile=/scratch/kocevski/902621/expmap_513820801_514080001_4FGL_J1028.3+3108_daily_bin1059.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/902621/ltcube_513820801_514080001_4FGL_J1028.3+3108_daily_bin1059.fits
.....................!
real 192.14
user 187.47
sys 4.01

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/902621/ft1_filtered_4FGL_J1028.3+3108_daily_bin1059.fits scfile=/scratch/kocevski/902621/ft2_4FGL_J1028.3+3108_daily_bin1059.fits outfile=/scratch/kocevski/902621/cmap_513820801_514080001_4FGL_J1028.3+3108_daily_bin1059.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902621/ft1_filtered_4FGL_J1028.3+3108_daily_bin1059.fits scfile=/scratch/kocevski/902621/ft2_4FGL_J1028.3+3108_daily_bin1059.fits outfile=/scratch/kocevski/902621/cmap_HighResolution_513820801_514080001_4FGL_J1028.3+3108_daily_bin1059.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.60
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6459       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.3456       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5206       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    63.685       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0181       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8663       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.384       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11838E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.6706       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-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      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1395       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0755       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=   6292.223     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3243 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8674        31.227       -.13243E-05   -.18220E-04
   2  Prefactor     6.6455        6.7271        .23391E-05   -.44514E-03
   3  Prefactor     .10000E-03    5.1438       -.23377E-06** at limit **
   4  Prefactor     .10000E-03    1.4743       -.14024E-07** at limit **
   5  norm          8.3457        7.0372       -.15600E-06   -.36453E-04
   6  Prefactor     .10000E-03    2.4269       -.55376E-08** at limit **
   7  Prefactor     5.5180        43.091       -.19039E-05   -.43511E-04
   8  Prefactor     .10000E-03    2.7566        .55159E-07** at limit **
   9  norm          .10000E-03    7.0389       -.56456E-08** at limit **
  10  Prefactor     63.664        56.059       -.39607E-05   -.32065E-03
  11  Prefactor     .10000E-03    33.912       -.55339E-06** at limit **
  12  Prefactor     1.0180        4.7931        .11029E-05   -.30512E-03
  13  Prefactor     5.8578        7.1531        .16784E-06   -.70952E-04
  14  Prefactor     .10000E-03    7.3370        .56110E-06** at limit **
  15  Prefactor     42.377        45.087       -.23984E-05   -.16244E-03
  16  Prefactor     .10001E-03    1.6615        .91747E-06** at limit **
  17  Prefactor     .10000E-03    14.460        .12191E-05** at limit **
  18  Prefactor     .10000E-03    11.309       -.15975E-05** at limit **
  19  Prefactor     .10000E-03    14.302        .77020E-06** at limit **
  20  Prefactor     .10000E-03    3.6290       -.16541E-06** at limit **
  21  norm          2.6706        .45862       -.80617E-09   -.63611E-04
  22  Prefactor     .10000E-03    1.4337        .68661E-07** at limit **
  23  Prefactor     .10000E-03    8.8030        .60511E-07** at limit **
  24  Prefactor     .10000E-03    8.3199        .32087E-06** at limit **
  25  norm          .10000E-03    5.2824       -.37420E-06** at limit **
  26  Normalizat    1.1396        .18331        .39224E-06   -.25557E-03
  27  Prefactor     1.0753        .20190       -.76458E-06   -.15193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.86736
  Prefactor  = 6.64555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.34566
  Prefactor  = 0.0001
  Prefactor  = 5.51798
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.6644
  Prefactor  = 0.0001
  Prefactor  = 1.01795
  Prefactor  = 5.85779
  Prefactor  = 0.0001
  Prefactor  = 42.3774
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.67058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.1396
  Prefactor  = 1.07534
 **********
 **   18 **HESSE 
 **********

 FCN=   6292.223     FROM HESSE     STATUS=OK           478 CALLS     3721 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8674        31.201        .13460E-03   -1.5112    
   2  Prefactor     6.6455        6.9754        .77829E-03   -1.5192    
   3  Prefactor     .10000E-03    5.1825        .17578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5152        .18792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.3457        7.0356        .13877E-03   -1.5130    
   6  Prefactor     .10000E-03    2.4757        .12058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5180        43.026        .17100E-03   -1.5238    
   8  Prefactor     .10000E-03    2.7952        .12854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.0831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     63.664        58.858        .50285E-04   -1.4110    
  11  Prefactor     .10000E-03    33.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0180        4.9233        .32617E-03   -1.5506    
  13  Prefactor     5.8578        7.1334        .16581E-03   -1.5224    
  14  Prefactor     .10000E-03    7.4507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     42.377        44.919        .61576E-04   -1.4405    
  16  Prefactor     .10001E-03    4.3600        .18948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.6361        .14763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.6706        .45898        .21543E-04   -1.5381    
  22  Prefactor     .10000E-03    1.4571        .92707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.8251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.3404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.3025        .17826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1396        .22119        .25086E-03   -.88490    
  27  Prefactor     1.0753        .24315        .29032E-03   -.90258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41586e-09
Minuit parameter uncertainties:
  1  31.258
  2  6.97622
  3  2.6416e-05
  4  2.81546e-06
  5  7.03634
  6  2.32967e-06
  7  30.8469
  8  8.21463e-06
  9  2.65598e-05
  10  58.9118
  11  8.69736e-05
  12  4.47774
  13  7.13441
  14  2.48932e-05
  15  44.9549
  16  0.000321741
  17  0.00010788
  18  0.000229664
  19  5.94955e-05
  20  1.60286e-05
  21  0.45898
  22  4.41129e-07
  23  4.0891e-06
  24  3.76101e-05
  25  3.93289e-05
  26  0.221368
  27  0.243402
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  6.366e+01  5.891e+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.434e-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.140e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.80
Ra Dec: 157.077 31.139
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.41e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/902621/likelihoodResults_513820801_514080001_4FGL_J1028.3+3108_daily_bin1059.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) = 6292.17156762
delta logL = 0.0510399171044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6292.16975904
delta logL = 0.0528484933711

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.106       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4942       1.0000          .0000       10.000    
     3 'Normalizat'    1.1272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0837       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=   6292.170     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      294 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.090        83.553        .58421E-04   -.26271E-04
   2  Index         2.4945        .98688        .68540E-02   -.26549E-04
   3  Normalizat    1.1270        .22018        .25206E-03   -.78372E-03
   4  Prefactor     1.0840        .24499        .28931E-03   -.89607E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.0897
  Index      = 2.49452
  Normalizat = 1.12705
  Prefactor  = 1.08398
 **********
 **   18 **HESSE 
 **********

 FCN=   6292.170     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.090        69.794        .23368E-05   -1.4334    
   2  Index         2.4945        .82442        .27416E-03   -.52486    
   3  Normalizat    1.1270        .21890        .50413E-04   -.88888    
   4  Prefactor     1.0840        .24418        .57862E-04   -.89980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23919e-09
Minuit parameter uncertainties:
  1  69.9153
  2  0.829487
  3  0.219077
  4  0.24443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902621': 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) = 6292.16975752
delta logL = 0.0528500135679

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.709e+01  6.992e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.495e+00  8.295e-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.084e+00  2.444e-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.127e+00  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 157.077 31.139
Photon Index (Free Index): 2.49 +/- 0.83
Photon Flux (Free Index): 4.43e-08 +/- 4.88e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.19e-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/902621/cmap_HighResolution_513820801_514080001_4FGL_J1028.3+3108_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-03', comment='SUCCESS', photon_flux='3.41e-08', energy_flux2='1.29e-05', photon_flux_error='3.15e-08', dlogl='5.29e-02', energy_flux='1.44e-05', photon_flux2='4.43e-08', job_status='DONE', time_completed='2021-09-01 23:26:43.998449', photon_index_error2='0.83', photon_index2='2.49', ts='1.80', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.19e-05', EG='1.14', time_epoch_completed='1630564004.0', return_code='0', job_id='902621', GAL2='1.08', EG2='1.13', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.88e-08', ts2='1.90', photon_index='2.23' WHERE bin_id='1059' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:26:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 902621: <4FGL_J1028.3+3108_daily_bin1059> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1059> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 23:10:21 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:10:36 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:10:36 2021
Terminated at Wed Sep  1 23:26:44 2021
Results reported at Wed Sep  1 23:26:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1059 157.077 31.1389 513820801 514080001 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 :                                   764.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            983 sec.

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

