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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin452
RA = 157.077, Dec = 31.1389
tmin = 356486401, tmax = 356745601
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='898425', job_status='RUN', time_executed='2021-09-01 22:58:23.065483', time_epoch_executed='1630562303.07' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898425/ft1_4FGL_J1028.3+3108_daily_bin452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898425/ft2_4FGL_J1028.3+3108_daily_bin452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898425/ft1_4FGL_J1028.3+3108_daily_bin452.fits outfile=/scratch/kocevski/898425/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin452.fits ra=157.077 dec=31.1389 rad=12.0 tmin=356486401.0 tmax=356745601.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.53
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898425/ft2_4FGL_J1028.3+3108_daily_bin452.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/898425/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin452.fits evtable="EVENTS" outfile="/scratch/kocevski/898425/ft1_filtered_4FGL_J1028.3+3108_daily_bin452.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/898425/ft1_filtered_4FGL_J1028.3+3108_daily_bin452.fits" evtable="EVENTS" scfile=/scratch/kocevski/898425/ft2_4FGL_J1028.3+3108_daily_bin452.fits sctable="SC_DATA" outfile=/scratch/kocevski/898425/ltcube_356486401_356745601_4FGL_J1028.3+3108_daily_bin452.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/898425/ft2_4FGL_J1028.3+3108_daily_bin452.fits
.....................!
real 17.58
user 17.17
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898425/ft1_filtered_4FGL_J1028.3+3108_daily_bin452.fits evtable="EVENTS" scfile=/scratch/kocevski/898425/ft2_4FGL_J1028.3+3108_daily_bin452.fits sctable="SC_DATA" expcube=/scratch/kocevski/898425/ltcube_356486401_356745601_4FGL_J1028.3+3108_daily_bin452.fits outfile=/scratch/kocevski/898425/expmap_356486401_356745601_4FGL_J1028.3+3108_daily_bin452.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/898425/ltcube_356486401_356745601_4FGL_J1028.3+3108_daily_bin452.fits
.....................!
real 192.04
user 185.76
sys 5.29

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/898425/ft1_filtered_4FGL_J1028.3+3108_daily_bin452.fits scfile=/scratch/kocevski/898425/ft2_4FGL_J1028.3+3108_daily_bin452.fits outfile=/scratch/kocevski/898425/cmap_356486401_356745601_4FGL_J1028.3+3108_daily_bin452.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=157.077 yref=31.1389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898425/ft1_filtered_4FGL_J1028.3+3108_daily_bin452.fits scfile=/scratch/kocevski/898425/ft2_4FGL_J1028.3+3108_daily_bin452.fits outfile=/scratch/kocevski/898425/cmap_HighResolution_356486401_356745601_4FGL_J1028.3+3108_daily_bin452.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=157.077 yref=31.1389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.973       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62194       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0261       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13818E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8184       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1620       1.0000         .10000E-03   10000.    
     9 'norm      '    3.5309       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.194       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.413       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.258       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0692       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9387       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.210       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4999       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15974E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9925       1.0000         .10000E-03   10000.    
    25 'norm      '    18.197       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79667       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1103       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=   5944.272     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3342 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.979        27.366        .37725E-05    .28961E-04
   2  Prefactor     .61961        .72768        .94636E-07   -.16816E-02
   3  Prefactor     6.0259        5.8440       -.24590E-06    .26707E-05
   4  Prefactor     .10000E-03    1.0744       -.12580E-06** at limit **
   5  norm          .10000E-03    9.2716       -.64914E-05** at limit **
   6  Prefactor     3.8168        4.0148       -.69480E-06   -.18793E-03
   7  Prefactor     .10000E-03    5.8232       -.20370E-06** at limit **
   8  Prefactor     1.1644        4.6763        .20218E-05    .15946E-03
   9  norm          3.5309        5.1549        .21842E-06   -.28584E-05
  10  Prefactor     24.172        47.640       -.34050E-04   -.49139E-05
  11  Prefactor     .10000E-03    15.883       -.71664E-05** at limit **
  12  Prefactor     14.412        5.3293        .14303E-06    .12950E-04
  13  Prefactor     .10000E-03    2.7992        .44449E-07** at limit **
  14  Prefactor     .10000E-03    2.9891       -.17569E-07** at limit **
  15  Prefactor     20.254        25.761       -.33818E-05    .36577E-05
  16  Prefactor     1.0690        1.6301       -.54700E-07   -.15316E-03
  17  Prefactor     .10000E-03    10.465        .40072E-05** at limit **
  18  Prefactor     .10000E-03    21.031        .55856E-05** at limit **
  19  Prefactor     5.9409        6.4153       -.15201E-06   -.12746E-03
  20  Prefactor     18.199        14.756        .77783E-07   -.52821E-04
  21  norm          1.5000        .34320       -.59696E-08   -.52177E-03
  22  Prefactor     .10000E-03    1.5829        .86724E-07** at limit **
  23  Prefactor     .10000E-03    10.732        .44830E-05** at limit **
  24  Prefactor     6.9927        12.458       -.84666E-07   -.35567E-04
  25  norm          18.198        15.346       -.11578E-05   -.93791E-04
  26  Normalizat    .79670        .16668        .14897E-05   -.37809E-04
  27  Prefactor     1.1104        .18820        .36552E-06    .39547E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.979
  Prefactor  = 0.61961
  Prefactor  = 6.02587
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 3.81678
  Prefactor  = 0.0001
  Prefactor  = 1.16444
  norm       = 3.53087
  Prefactor  = 24.1717
  Prefactor  = 0.0001
  Prefactor  = 14.4124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2544
  Prefactor  = 1.06898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.94094
  Prefactor  = 18.1994
  norm       = 1.5
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 6.99268
  norm       = 18.1984
  Normalizat = 0.7967
  Prefactor  = 1.1104
 **********
 **   18 **HESSE 
 **********

 FCN=   5944.272     FROM HESSE     STATUS=OK           508 CALLS     3850 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.979        27.406        .66818E-04   -1.4508    
   2  Prefactor     .61961        7.0071        .19152E-02   -1.5551    
   3  Prefactor     6.0259        5.8461        .16356E-03   -1.5217    
   4  Prefactor     .10000E-03    3.6829        .26231E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.4897        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8168        3.7812        .11952E-03   -1.5317    
   7  Prefactor     .10000E-03    5.8254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1644        4.3878        .24821E-03   -1.5492    
   9  norm          3.5309        5.1403        .20414E-03   -1.5332    
  10  Prefactor     24.172        47.672        .81438E-04   -1.4724    
  11  Prefactor     .10000E-03    15.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.412        5.3350        .10132E-03   -1.4949    
  13  Prefactor     .10000E-03    2.8581        .12585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0109        .13011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.254        25.753        .88989E-04   -1.4808    
  16  Prefactor     1.0690        1.4047        .11645E-02   -1.5501    
  17  Prefactor     .10000E-03    10.744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9409        6.4033        .16478E-03   -1.5220    
  20  Prefactor     18.199        13.902        .93857E-04   -1.4854    
  21  norm          1.5000        .34665        .20113E-04   -1.5463    
  22  Prefactor     .10000E-03    7.0477        .17473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.9927        12.560        .15171E-03   -1.5179    
  25  norm          18.198        15.354        .93890E-04   -1.4855    
  26  Normalizat    .79670        .19464        .24693E-03   -1.0019    
  27  Prefactor     1.1104        .22189        .25497E-03   -.89135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93948e-09
Minuit parameter uncertainties:
  1  27.4158
  2  4.16762
  3  5.84666
  4  0.000197629
  5  3.28325e-05
  6  3.78147
  7  2.46211e-06
  8  4.38905
  9  5.14095
  10  47.7469
  11  3.86407e-06
  12  5.33516
  13  4.47664e-06
  14  4.66253e-06
  15  25.7668
  16  1.40473
  17  5.97239e-05
  18  1.01388e-05
  19  6.40403
  20  13.9043
  21  0.346649
  22  0.000266592
  23  1.07847e-05
  24  12.5644
  25  15.3571
  26  0.194807
  27  0.22207
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  2.417e+01  4.775e+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.110e+00  2.221e-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:  7.967e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/898425/likelihoodResults_356486401_356745601_4FGL_J1028.3+3108_daily_bin452.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) = 5943.96997834
delta logL = 0.302477629344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5943.94149358
delta logL = 0.330962391193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4024       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5246       1.0000          .0000       10.000    
     3 'Normalizat'    .75970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1381       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=   5943.941     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      353 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3981        195.62        .14956E-03    .12543E-04
   2  Index         3.5252        6.7578        .56215E-02    .33491E-04
   3  Normalizat    .75968        .16950        .25242E-03    .15948E-03
   4  Prefactor     1.1382        .19561        .25223E-03   -.20239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.39808
  Index      = 3.52515
  Normalizat = 0.759682
  Prefactor  = 1.13818
 **********
 **   18 **HESSE 
 **********

 FCN=   5943.941     FROM HESSE     STATUS=OK            25 CALLS      378 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3981        20.392        .59823E-05   -1.5339    
   2  Index         3.5252        1.9912        .22486E-03   -.29942    
   3  Normalizat    .75968        .19187        .10097E-04   -1.0158    
   4  Prefactor     1.1382        .22543        .50445E-04   -.88255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28423e-10
Minuit parameter uncertainties:
  1  16.657
  2  2.0539
  3  0.192039
  4  0.225618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898425': 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) = 5943.94149352
delta logL = 0.330962447342

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.138e+00  2.256e-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:  7.597e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 157.077 31.139
Photon Index (Free Index): 3.53 +/- 2.05
Photon Flux (Free Index): 3.79e-08 +/- 4.51e-08
Energy Flux (Free Index): 6.26e-06 +/- 7.13e-06

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/898425/cmap_HighResolution_356486401_356745601_4FGL_J1028.3+3108_daily_bin452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', comment='SUCCESS', energy_flux2='6.26e-06', dlogl='3.31e-01', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-09-01 23:11:17.800302', photon_index_error2='2.05', photon_index2='3.53', ts='0.33', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.76e-08', energy_flux_error2='7.13e-06', EG='0.80', time_epoch_completed='1630563077.8', return_code='0', job_id='898425', GAL2='1.14', EG2='0.76', return_code2='0', photon_flux_error2='4.51e-08', ts2='1.03', photon_index='2.23' WHERE bin_id='452' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 898425: <4FGL_J1028.3+3108_daily_bin452> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin452 157.077 31.1389 356486401 356745601 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 :                                   769.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            943 sec.

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

