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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin675
RA = 157.077, Dec = 31.1389
tmin = 414288001, tmax = 414547201
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='899915', job_status='RUN', time_executed='2021-09-01 23:02:56.828758', time_epoch_executed='1630562576.83' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899915/ft1_4FGL_J1028.3+3108_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899915/ft2_4FGL_J1028.3+3108_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899915/ft1_4FGL_J1028.3+3108_daily_bin675.fits outfile=/scratch/kocevski/899915/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin675.fits ra=157.077 dec=31.1389 rad=12.0 tmin=414288001.0 tmax=414547201.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 5.55
user 5.26
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899915/ft1_filtered_4FGL_J1028.3+3108_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/899915/ft2_4FGL_J1028.3+3108_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/899915/ltcube_414288001_414547201_4FGL_J1028.3+3108_daily_bin675.fits outfile=/scratch/kocevski/899915/expmap_414288001_414547201_4FGL_J1028.3+3108_daily_bin675.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/899915/ltcube_414288001_414547201_4FGL_J1028.3+3108_daily_bin675.fits
.....................!
real 191.78
user 187.02
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/899915/ft1_filtered_4FGL_J1028.3+3108_daily_bin675.fits scfile=/scratch/kocevski/899915/ft2_4FGL_J1028.3+3108_daily_bin675.fits outfile=/scratch/kocevski/899915/cmap_414288001_414547201_4FGL_J1028.3+3108_daily_bin675.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899915/ft1_filtered_4FGL_J1028.3+3108_daily_bin675.fits scfile=/scratch/kocevski/899915/ft2_4FGL_J1028.3+3108_daily_bin675.fits outfile=/scratch/kocevski/899915/cmap_HighResolution_414288001_414547201_4FGL_J1028.3+3108_daily_bin675.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1463       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .89357E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.281       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0083       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.422       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8574       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4701       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.763       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.679       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4537       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1498       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .67004       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3107       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=   4947.319     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3273 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.376        .80535E-06** at limit **
   2  Prefactor     .10000E-03    3.6622        .15714E-06** at limit **
   3  Prefactor     8.1481        9.0145       -.15039E-06    .32979E-04
   4  Prefactor     .76827E-01    1.2755       -.39987E-06    .78956E-03
   5  norm          .10000E-03    2.3146        .17410E-07** at limit **
   6  Prefactor     .10000E-03    3.1027       -.71977E-06** at limit **
   7  Prefactor     30.279        25.488       -.43605E-06   -.71837E-04
   8  Prefactor     4.0106        4.2089        .25808E-05   -.14874E-02
   9  norm          .10000E-03    7.3697       -.47854E-06** at limit **
  10  Prefactor     .10001E-03    41.677       -.51697E-05** at limit **
  11  Prefactor     47.418        34.605       -.73705E-06   -.18794E-03
  12  Prefactor     8.8564        5.7411        .89061E-07   -.15711E-03
  13  Prefactor     .10000E-03    4.9838        .89300E-06** at limit **
  14  Prefactor     6.4672        7.2608       -.36032E-08   -.11080E-03
  15  Prefactor     .10001E-03    29.537        .45290E-05** at limit **
  16  Prefactor     .10000E-03    1.7439        .11070E-06** at limit **
  17  Prefactor     19.760        12.556        .34815E-07    .10926E-04
  18  Prefactor     10.673        25.001       -.17911E-05   -.13880E-03
  19  Prefactor     .10000E-03    4.6449       -.74007E-06** at limit **
  20  Prefactor     .10000E-03    7.4279       -.32251E-06** at limit **
  21  norm          1.4535        .34506        .44972E-08   -.65070E-04
  22  Prefactor     4.1484        3.5803        .30790E-06    .24197E-03
  23  Prefactor     .10000E-03    12.512       -.33508E-05** at limit **
  24  Prefactor     .10000E-03    10.397        .33077E-05** at limit **
  25  norm          .10000E-03    5.7776       -.32338E-06** at limit **
  26  Normalizat    .67011        .18099       -.90259E-06    .88130E-04
  27  Prefactor     1.3107        .20577       -.95501E-07    .64076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.14807
  Prefactor  = 0.0768275
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2791
  Prefactor  = 4.01059
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 47.4184
  Prefactor  = 8.85636
  Prefactor  = 0.0001
  Prefactor  = 6.46721
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 19.7601
  Prefactor  = 10.6728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45351
  Prefactor  = 4.14841
  Prefactor  = 0.000100005
  Prefactor  = 0.000100005
  norm       = 0.0001
  Normalizat = 0.67011
  Prefactor  = 1.31067
 **********
 **   18 **HESSE 
 **********

 FCN=   4947.319     FROM HESSE     STATUS=OK           484 CALLS     3757 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7125        .13141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1481        9.0182        .14047E-03   -1.5137    
   4  Prefactor     .76827E-01    15.408        .14877E-02   -1.5653    
   5  norm          .10000E-03    2.3292        .10450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2132        .24298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.279        25.504        .72811E-04   -1.4607    
   8  Prefactor     4.0106        4.5372        .74515E-03   -1.5307    
   9  norm          .10000E-03    7.4588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    42.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     47.418        34.499        .58227E-04   -1.4330    
  12  Prefactor     8.8564        5.7469        .12709E-03   -1.5113    
  13  Prefactor     .10000E-03    5.1265        .30636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4672        7.1923        .15778E-03   -1.5199    
  15  Prefactor     .10001E-03    30.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7318        .17606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.760        12.495        .90095E-04   -1.4819    
  18  Prefactor     10.673        25.193        .12260E-03   -1.5054    
  19  Prefactor     .10000E-03    4.6712        .14835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4535        .34551        .19541E-04   -1.5467    
  22  Prefactor     4.1484        3.5776        .11727E-03   -1.5301    
  23  Prefactor     .10000E-03    13.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.7910        .16517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .67011        .21205        .27002E-03   -1.0509    
  27  Prefactor     1.3107        .24207        .24205E-03   -.82990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00802e-09
Minuit parameter uncertainties:
  1  0.000194991
  2  1.22107e-05
  3  9.01971
  4  2.17513
  5  1.03309e-06
  6  5.28092e-05
  7  25.5136
  8  4.53759
  9  4.51983e-05
  10  0.00140409
  11  34.5137
  12  5.74729
  13  0.00010064
  14  7.1933
  15  0.00104817
  16  7.11462e-06
  17  12.4969
  18  25.2176
  19  6.6966e-05
  20  4.68968e-05
  21  0.345514
  22  3.57782
  23  0.000488154
  24  0.000448219
  25  3.05456e-05
  26  0.212307
  27  0.242276
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.404e-03  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.311e+00  2.423e-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:  6.701e-01  2.123e-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: 7.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899915/likelihoodResults_414288001_414547201_4FGL_J1028.3+3108_daily_bin675.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) = 4947.31886368
delta logL = -0.000111183790068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4947.31875304
delta logL = -5.36914740223e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13945E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1679       1.0000          .0000       10.000    
     3 'Normalizat'    .67011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3107       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=   4947.319     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      238 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    993.35        .90712E-02** at limit **
   2  Index         2.1823        7.9292        .50000       -.31785E-05
   3  Normalizat    .67011        .22512E-01    .61040E-01   -.56704E-04
   4  Prefactor     1.3107        .27446E-01    .54747E-01    .78592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.18228
  Normalizat = 0.670107
  Prefactor  = 1.31068
 **********
 **   18 **HESSE 
 **********

 FCN=   4947.319     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6293.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1823        5.3011        .50000       -.59867    
   3  Normalizat    .67011        .39620E-01    .27002E-03   -1.0509    
   4  Prefactor     1.3107        .48360E-01    .24205E-03   -.82990    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61757e-08
Minuit parameter uncertainties:
  1  0.00831672
  2  34.5595
  3  0.0396218
  4  0.0483617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899915': 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) = 4947.31875254
delta logL = -4.36884874944e-08

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  8.317e-03  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.182e+00  3.456e+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.311e+00  4.836e-02  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:  6.701e-01  3.962e-02  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/899915/cmap_HighResolution_414288001_414547201_4FGL_J1028.3+3108_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-09-01 23:14:34.024164', job_id='899915', GAL2='1.31', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630563274.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='-4.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='675' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:14:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 899915: <4FGL_J1028.3+3108_daily_bin675> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin675> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 23:00:40 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:02:39 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:02:39 2021
Terminated at Wed Sep  1 23:14:34 2021
Results reported at Wed Sep  1 23:14:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin675 157.077 31.1389 414288001 414547201 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 :                                   689.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            834 sec.

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

