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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1417
RA = 157.077, Dec = 31.1389
tmin = 606614401, tmax = 606873601
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='904219', job_status='RUN', time_executed='2021-09-01 23:16:25.209000', time_epoch_executed='1630563385.21' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904219

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904219/ft1_4FGL_J1028.3+3108_daily_bin1417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904219/ft2_4FGL_J1028.3+3108_daily_bin1417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904219/ft1_4FGL_J1028.3+3108_daily_bin1417.fits outfile=/scratch/kocevski/904219/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1417.fits ra=157.077 dec=31.1389 rad=12.0 tmin=606614401.0 tmax=606873601.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 4.23
user 4.01
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904219/ft1_filtered_4FGL_J1028.3+3108_daily_bin1417.fits" evtable="EVENTS" scfile=/scratch/kocevski/904219/ft2_4FGL_J1028.3+3108_daily_bin1417.fits sctable="SC_DATA" outfile=/scratch/kocevski/904219/ltcube_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.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/904219/ft2_4FGL_J1028.3+3108_daily_bin1417.fits
.....................!
real 14.81
user 14.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904219/ft1_filtered_4FGL_J1028.3+3108_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/904219/ft2_4FGL_J1028.3+3108_daily_bin1417.fits sctable="SC_DATA" expcube=/scratch/kocevski/904219/ltcube_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.fits outfile=/scratch/kocevski/904219/expmap_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.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/904219/ltcube_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.fits
.....................!
real 156.68
user 152.07
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/904219/ft1_filtered_4FGL_J1028.3+3108_daily_bin1417.fits scfile=/scratch/kocevski/904219/ft2_4FGL_J1028.3+3108_daily_bin1417.fits outfile=/scratch/kocevski/904219/cmap_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.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.49
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904219/ft1_filtered_4FGL_J1028.3+3108_daily_bin1417.fits scfile=/scratch/kocevski/904219/ft2_4FGL_J1028.3+3108_daily_bin1417.fits outfile=/scratch/kocevski/904219/cmap_HighResolution_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.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.50
user 0.35
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/904219/ft1_filtered_4FGL_J1028.3+3108_daily_bin1417.fits', '/scratch/kocevski/904219/ft2_4FGL_J1028.3+3108_daily_bin1417.fits', expMap='/scratch/kocevski/904219/expmap_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.fits', expCube='/scratch/kocevski/904219/ltcube_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/904219/Model_4FGL_J1028.3+3108_daily_bin1417.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/904219/ft1_filtered_4FGL_J1028.3+3108_daily_bin1417.fits
Spacecraft file(s): /scratch/kocevski/904219/ft2_4FGL_J1028.3+3108_daily_bin1417.fits
Exposure map: /scratch/kocevski/904219/expmap_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.fits
Exposure cube: /scratch/kocevski/904219/ltcube_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/904219/Model_4FGL_J1028.3+3108_daily_bin1417.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5870.22314657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.126       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1112       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5170       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.381       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.400       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1979       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35450       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .65176       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.576       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .52398       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .67114E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8831       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    24.270       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .59655       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2754       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=   5870.032     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     2893 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.340       -.84926E-06** at limit **
   2  Prefactor     13.126        7.7255       -.46077E-06    .14693E-03
   3  Prefactor     9.1111        7.7345       -.47863E-06   -.15018E-04
   4  Prefactor     .10000E-03    .63671       -.16862E-06** at limit **
   5  norm          2.5180        6.3399       -.59673E-06    .42695E-03
   6  Prefactor     .10000E-03    2.0867       -.50656E-06** at limit **
   7  Prefactor     14.378        17.846       -.29355E-06    .32031E-04
   8  Prefactor     12.400        5.2660        .15842E-06    .17246E-03
   9  norm          .10000E-03    3.1734       -.66544E-07** at limit **
  10  Prefactor     2.1373        208.44        .15248E-04    .71885E-04
  11  Prefactor     .10000E-03    22.135       -.28041E-06** at limit **
  12  Prefactor     2.2380        4.1212       -.41578E-06    .68098E-03
  13  Prefactor     .34654        10.492       -.13973E-04   -.38696E-03
  14  Prefactor     20.401        8.5074        .52920E-06    .11882E-02
  15  Prefactor     .10000E-03    16.679       -.28348E-06** at limit **
  16  Prefactor     .64975        2.4632       -.17247E-05    .87928E-03
  17  Prefactor     12.538        9.0430        .50624E-06    .50331E-03
  18  Prefactor     .46796        93.480       -.41251E-04    .22132E-03
  19  Prefactor     .23479        6.2605       -.45066E-05    .56313E-04
  20  Prefactor     .10000E-03    4.2495       -.17058E-06** at limit **
  21  norm          1.8832        .35806       -.76897E-08    .87859E-03
  22  Prefactor     .10000E-03    1.5765       -.36726E-06** at limit **
  23  Prefactor     .10000E-03    6.9839       -.29595E-06** at limit **
  24  Prefactor     .10000E-03    5.7839       -.13516E-06** at limit **
  25  norm          24.274        13.892       -.25496E-06    .13511E-03
  26  Normalizat    .59690        .17331        .56758E-05    .69067E-03
  27  Prefactor     1.2750        .19103       -.53297E-06    .44624E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.1256
  Prefactor  = 9.11112
  Prefactor  = 0.0001
  norm       = 2.51798
  Prefactor  = 0.0001
  Prefactor  = 14.3778
  Prefactor  = 12.4003
  norm       = 0.0001
  Prefactor  = 2.13732
  Prefactor  = 0.0001
  Prefactor  = 2.23803
  Prefactor  = 0.346544
  Prefactor  = 20.4007
  Prefactor  = 0.0001
  Prefactor  = 0.649747
  Prefactor  = 12.5384
  Prefactor  = 0.467962
  Prefactor  = 0.234789
  Prefactor  = 0.0001
  norm       = 1.88318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.274
  Normalizat = 0.596901
  Prefactor  = 1.27497
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.032     FROM HESSE     STATUS=OK           494 CALLS     3387 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.126        7.7290        .11056E-03   -1.4983    
   3  Prefactor     9.1111        7.7366        .13278E-03   -1.5104    
   4  Prefactor     .10000E-03    .64445        .59736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5180        6.3336        .25752E-03   -1.5391    
   6  Prefactor     .10000E-03    2.1303        .21562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.378        17.839        .10562E-03   -1.4949    
   8  Prefactor     12.400        5.2523        .10511E-03   -1.5004    
   9  norm          .10000E-03    3.1842        .13324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1373        217.20        .27755E-03   -1.5416    
  11  Prefactor     .10000E-03    22.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2380        4.1233        .19637E-03   -1.5409    
  13  Prefactor     .34654        17.389        .23361E-02   -1.5590    
  14  Prefactor     20.401        8.4654        .88678E-04   -1.4804    
  15  Prefactor     .10000E-03    16.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .64975        2.4815        .21115E-03   -1.5547    
  17  Prefactor     12.538        9.0826        .11295E-03   -1.5000    
  18  Prefactor     .46796        179.34        .60941E-02   -1.5571    
  19  Prefactor     .23479        49.384        .33443E-02   -1.5611    
  20  Prefactor     .10000E-03    4.2670        .15424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8832        .35844        .19319E-04   -1.5434    
  22  Prefactor     .10000E-03    1.6472        .18797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.0250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.7908        .17995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          24.274        13.891        .81310E-04   -1.4722    
  26  Normalizat    .59690        .20223        .28004E-03   -1.0812    
  27  Prefactor     1.2750        .22588        .24084E-03   -.84054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70632e-09
Minuit parameter uncertainties:
  1  9.80876e-05
  2  7.72954
  3  7.73746
  4  6.31266e-06
  5  6.33532
  6  6.18258e-05
  7  17.8453
  8  5.25247
  9  9.91811e-07
  10  43.2526
  11  2.61105e-05
  12  4.12382
  13  4.91042
  14  8.46592
  15  2.21954e-05
  16  2.48192
  17  9.08358
  18  18.3759
  19  6.81445
  20  3.97311e-06
  21  0.358438
  22  2.69655e-06
  23  1.79358e-05
  24  8.70371e-06
  25  13.893
  26  0.202478
  27  0.226056
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  2.137e+00  4.325e+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.275e+00  2.261e-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:  5.969e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/904219/likelihoodResults_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5869.93285731
delta logL = 0.0992184888692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5869.92384024
delta logL = 0.108235561043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9480       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1272       1.0000          .0000       10.000    
     3 'Normalizat'    .58074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2820       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5869.924     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      242 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9480        356.13        .50754E-02    .29066E-03
   2  Index         3.1275        6.5503        .14090        .11401E-03
   3  Normalizat    .58073        .39733E-01    .64127E-01    .29885E-04
   4  Prefactor     1.2820        .46587E-01    .54347E-01    .25493E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.94804
  Index      = 3.12754
  Normalizat = 0.580731
  Prefactor  = 1.282
 **********
 **   18 **HESSE 
 **********

 FCN=   5869.924     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9480        937.00        .20302E-03   -1.5311    
   2  Index         3.1275        5.8045        .92528E-02   -.38385    
   3  Normalizat    .58073        .19168        .28376E-03   -1.0881    
   4  Prefactor     1.2820        .23574        .24028E-03   -.83844    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29859e-11
Minuit parameter uncertainties:
  1  123.653
  2  12.541
  3  0.191895
  4  0.235933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904219': 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): 102
logL (Free Index) = 5869.92384013
delta logL = 0.108235664128

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.948e+00  1.237e+02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  3.128e+00  1.254e+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.282e+00  2.359e-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:  5.807e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 157.077 31.139

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/904219/cmap_HighResolution_606614401_606873601_4FGL_J1028.3+3108_daily_bin1417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2021-09-01 23:26:38.558852', job_id='904219', GAL2='1.28', fit_tolerance='1e-08', EG2='0.58', EG='0.60', time_epoch_completed='1630563998.56', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.08e-01', ts2='0.23', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1417' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:26:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 904219: <4FGL_J1028.3+3108_daily_bin1417> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1417> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 23:15:33 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:16:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 23:16:12 2021
Terminated at Wed Sep  1 23:26:39 2021
Results reported at Wed Sep  1 23:26:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1417 157.077 31.1389 606614401 606873601 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 :                                   602.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             348.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            666 sec.

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

