/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 222 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 = 7677
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1028.3+3108_daily_bin23
RA = 157.077, Dec = 31.1389
tmin = 245289601, tmax = 245548801
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='895568', job_status='RUN', time_executed='2021-09-01 22:49:38.653169', time_epoch_executed='1630561778.65' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895568

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895568/ft1_4FGL_J1028.3+3108_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895568/ft2_4FGL_J1028.3+3108_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895568/ft1_4FGL_J1028.3+3108_daily_bin23.fits outfile=/scratch/kocevski/895568/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin23.fits ra=157.077 dec=31.1389 rad=12.0 tmin=245289601.0 tmax=245548801.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 1.51
user 1.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895568/ft1_filtered_4FGL_J1028.3+3108_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/895568/ft2_4FGL_J1028.3+3108_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/895568/ltcube_245289601_245548801_4FGL_J1028.3+3108_daily_bin23.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/895568/ft2_4FGL_J1028.3+3108_daily_bin23.fits
.....................!
real 19.52
user 18.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895568/ft1_filtered_4FGL_J1028.3+3108_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/895568/ft2_4FGL_J1028.3+3108_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/895568/ltcube_245289601_245548801_4FGL_J1028.3+3108_daily_bin23.fits outfile=/scratch/kocevski/895568/expmap_245289601_245548801_4FGL_J1028.3+3108_daily_bin23.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/895568/ltcube_245289601_245548801_4FGL_J1028.3+3108_daily_bin23.fits
.....................!
real 195.08
user 187.29
sys 5.47

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/895568/ft1_filtered_4FGL_J1028.3+3108_daily_bin23.fits scfile=/scratch/kocevski/895568/ft2_4FGL_J1028.3+3108_daily_bin23.fits outfile=/scratch/kocevski/895568/cmap_245289601_245548801_4FGL_J1028.3+3108_daily_bin23.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895568/ft1_filtered_4FGL_J1028.3+3108_daily_bin23.fits scfile=/scratch/kocevski/895568/ft2_4FGL_J1028.3+3108_daily_bin23.fits outfile=/scratch/kocevski/895568/cmap_HighResolution_245289601_245548801_4FGL_J1028.3+3108_daily_bin23.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.859       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12382E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9196       1.0000         .10000E-03   10000.    
     5 'norm      '    18.693       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.671       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3608       1.0000         .10000E-03   10000.    
     9 'norm      '    8.6799       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6193       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44812       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1807       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.073       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.074       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.207       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2295       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.6271       1.0000         .10000E-03   10000.    
    25 'norm      '    19.671       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0991       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .77657       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=   5040.279     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3286 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.877        38.398        .24006E-04   -.18857E-03
   2  Prefactor     .10000E-03    3.1788       -.20294E-05** at limit **
   3  Prefactor     .10000E-03    3.4886        .52010E-08** at limit **
   4  Prefactor     1.9202        2.0102       -.35143E-06   -.14782E-03
   5  norm          18.696        9.6136        .22581E-06    .13558E-03
   6  Prefactor     .10000E-03    1.2011        .44938E-07** at limit **
   7  Prefactor     43.678        38.672        .79487E-05   -.53060E-04
   8  Prefactor     4.3612        3.9254       -.13743E-06   -.10486E-04
   9  norm          8.6817        10.366       -.64031E-06    .89858E-04
  10  Prefactor     .10000E-03    26.223       -.44426E-06** at limit **
  11  Prefactor     .10000E-03    14.791       -.29683E-05** at limit **
  12  Prefactor     1.6200        4.9050       -.53407E-05   -.59191E-03
  13  Prefactor     .10000E-03    1.8714        .69422E-07** at limit **
  14  Prefactor     .47512        4.4729        .71476E-08   -.17804E-03
  15  Prefactor     .10000E-03    16.003        .41161E-05** at limit **
  16  Prefactor     .10000E-03    1.2711        .49227E-07** at limit **
  17  Prefactor     8.1809        10.021        .82632E-06   -.11625E-03
  18  Prefactor     13.067        20.344       -.45696E-05    .75559E-04
  19  Prefactor     27.075        14.255        .53317E-06   -.53931E-04
  20  Prefactor     10.209        9.2556        .31374E-06    .26242E-05
  21  norm          1.2296        .33480        .18008E-07    .10123E-03
  22  Prefactor     .10000E-03    1.1111        .54311E-07** at limit **
  23  Prefactor     .10000E-03    8.7625        .37861E-06** at limit **
  24  Prefactor     8.6287        12.478        .14510E-06   -.32545E-04
  25  norm          19.673        15.346        .19473E-05   -.90279E-04
  26  Normalizat    1.0988        .18723       -.18011E-05    .37516E-03
  27  Prefactor     .77698        .20425       -.75203E-06    .12935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.8774
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.92015
  norm       = 18.6963
  Prefactor  = 0.0001
  Prefactor  = 43.6776
  Prefactor  = 4.36121
  norm       = 8.68175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.62003
  Prefactor  = 0.0001
  Prefactor  = 0.475125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.18088
  Prefactor  = 13.0672
  Prefactor  = 27.0749
  Prefactor  = 10.2085
  norm       = 1.2296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.62866
  norm       = 19.6733
  Normalizat = 1.09885
  Prefactor  = 0.776981
 **********
 **   18 **HESSE 
 **********

 FCN=   5040.279     FROM HESSE     STATUS=OK           490 CALLS     3776 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.877        37.906        .67874E-04   -1.4526    
   2  Prefactor     .10000E-03    14.572        .24266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4937        .12950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9202        2.0044        .98994E-04   -1.5431    
   5  norm          18.696        9.6056        .92637E-04   -1.4843    
   6  Prefactor     .10000E-03    1.2050        .75940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.678        38.702        .60666E-04   -1.4385    
   8  Prefactor     4.3612        3.9248        .12799E-03   -1.5290    
   9  norm          8.6817        10.316        .13606E-03   -1.5119    
  10  Prefactor     .10000E-03    26.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6200        4.9849        .25950E-03   -1.5453    
  13  Prefactor     .10000E-03    1.8791        .94828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .47512        23.375        .27924E-02   -1.5570    
  15  Prefactor     .10000E-03    16.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3062        .15598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1809        9.9954        .14017E-03   -1.5136    
  18  Prefactor     13.067        20.353        .11079E-03   -1.4985    
  19  Prefactor     27.075        14.245        .76992E-04   -1.4667    
  20  Prefactor     10.209        9.2535        .12542E-03   -1.5069    
  21  norm          1.2296        .33683        .20316E-04   -1.5486    
  22  Prefactor     .10000E-03    1.1220        .73018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.7996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.6287        12.531        .13647E-03   -1.5120    
  25  norm          19.673        15.328        .90306E-04   -1.4821    
  26  Normalizat    1.0988        .21487        .22341E-03   -.89789    
  27  Prefactor     .77698        .23472        .29995E-03   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71202e-09
Minuit parameter uncertainties:
  1  37.9323
  2  0.000214388
  3  8.75638e-08
  4  2.00448
  5  9.60642
  6  2.20626e-06
  7  38.7238
  8  3.92504
  9  10.3178
  10  4.27651e-05
  11  9.81176e-05
  12  4.98619
  13  9.23822e-06
  14  6.66722
  15  1.94047e-05
  16  2.85137e-06
  17  9.9974
  18  20.364
  19  14.2464
  20  9.25478
  21  0.336833
  22  2.95004e-06
  23  1.17433e-05
  24  12.5348
  25  15.3308
  26  0.215044
  27  0.235022
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  4.277e-05  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:  7.770e-01  2.350e-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.099e+00  2.150e-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: 5.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895568/likelihoodResults_245289601_245548801_4FGL_J1028.3+3108_daily_bin23.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) = 5040.27952207
delta logL = -0.000181451566277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5040.27934157
delta logL = -9.58111741056e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5519       1.0000          .0000       10.000    
     3 'Normalizat'    1.0988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77698       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=   5040.279     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      281 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10374E-03    3.7590        .18142E-01** at limit **
   2  Index         2.4610        5.1958        .50000        .15445E-04
   3  Normalizat    1.0988        .19553E-02    .22341E-03   -.43253E-05
   4  Prefactor     .77698        .22539E-02    .29995E-03   -.22779E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103738
  Index      = 2.46098
  Normalizat = 1.09885
  Prefactor  = 0.776983
 **********
 **   18 **HESSE 
 **********

 FCN=   5040.279     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10374E-03    71.162        .30814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4610        8.4662        .50000       -.53263    
   3  Normalizat    1.0988        .85147E-02    .89366E-05   -.89789    
   4  Prefactor     .77698        .98153E-02    .11998E-04   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.18976e-09
Minuit parameter uncertainties:
  1  0.0326582
  2  236.659
  3  0.00851473
  4  0.00981527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895568': 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) = 5040.27934132
delta logL = -7.02944817021e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.037e-04  3.266e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.461e+00  2.367e+02  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:  7.770e-01  9.815e-03  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.099e+00  8.515e-03  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/895568/cmap_HighResolution_245289601_245548801_4FGL_J1028.3+3108_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-03', job_status='DONE', photon_flux_upper_limit='5.43e-08', time_completed='2021-09-01 23:01:11.808009', job_id='895568', GAL2='0.78', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630562471.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-7.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='23' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:01:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 895568: <4FGL_J1028.3+3108_daily_bin23> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin23> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:45:35 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:45:44 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:45:44 2021
Terminated at Wed Sep  1 23:01:12 2021
Results reported at Wed Sep  1 23:01:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin23 157.077 31.1389 245289601 245548801 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 :                                   687.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            937 sec.

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

