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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin40
RA = 157.077, Dec = 31.1389
tmin = 249696001, tmax = 249955201
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='895594', job_status='RUN', time_executed='2021-09-01 22:48:58.862494', time_epoch_executed='1630561738.86' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895594

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895594/ft1_4FGL_J1028.3+3108_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895594/ft2_4FGL_J1028.3+3108_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895594/ft1_4FGL_J1028.3+3108_daily_bin40.fits outfile=/scratch/kocevski/895594/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin40.fits ra=157.077 dec=31.1389 rad=12.0 tmin=249696001.0 tmax=249955201.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.30
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895594/ft1_filtered_4FGL_J1028.3+3108_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/895594/ft2_4FGL_J1028.3+3108_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/895594/ltcube_249696001_249955201_4FGL_J1028.3+3108_daily_bin40.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/895594/ft2_4FGL_J1028.3+3108_daily_bin40.fits
.....................!
real 19.95
user 19.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895594/ft1_filtered_4FGL_J1028.3+3108_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/895594/ft2_4FGL_J1028.3+3108_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/895594/ltcube_249696001_249955201_4FGL_J1028.3+3108_daily_bin40.fits outfile=/scratch/kocevski/895594/expmap_249696001_249955201_4FGL_J1028.3+3108_daily_bin40.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/895594/ltcube_249696001_249955201_4FGL_J1028.3+3108_daily_bin40.fits
.....................!
real 193.19
user 187.48
sys 5.15

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/895594/ft1_filtered_4FGL_J1028.3+3108_daily_bin40.fits scfile=/scratch/kocevski/895594/ft2_4FGL_J1028.3+3108_daily_bin40.fits outfile=/scratch/kocevski/895594/cmap_249696001_249955201_4FGL_J1028.3+3108_daily_bin40.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.58
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895594/ft1_filtered_4FGL_J1028.3+3108_daily_bin40.fits scfile=/scratch/kocevski/895594/ft2_4FGL_J1028.3+3108_daily_bin40.fits outfile=/scratch/kocevski/895594/cmap_HighResolution_249696001_249955201_4FGL_J1028.3+3108_daily_bin40.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.931       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.226       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8283       1.0000         .10000E-03   10000.    
     5 'norm      '    5.2332       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26300E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12672E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0915       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7443       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4990       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4057       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14263E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11145E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.357       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5969       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0614       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2282       1.0000         .10000E-03   10000.    
    25 'norm      '    .10328E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .77261       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95485       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=   4412.958     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     2847 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.869        34.382       -.15324E-06   -.13540E-03
   2  Prefactor     22.223        9.2387       -.10149E-06   -.24942E-04
   3  Prefactor     .10000E-03    8.6555        .13395E-08** at limit **
   4  Prefactor     3.8267        3.2199       -.27887E-07   -.63960E-04
   5  norm          5.2319        6.9296        .21627E-05   -.36507E-04
   6  Prefactor     .10000E-03    2.9440        .32032E-06** at limit **
   7  Prefactor     .10000E-03    16.397       -.65681E-07** at limit **
   8  Prefactor     6.0932        4.7821       -.33500E-06   -.15774E-03
   9  norm          .10000E-03    3.1655        .16857E-07** at limit **
  10  Prefactor     .10000E-03    32.904       -.27511E-06** at limit **
  11  Prefactor     .10000E-03    11.771       -.37134E-07** at limit **
  12  Prefactor     5.7432        5.0376        .12955E-06   -.21682E-04
  13  Prefactor     6.4973        4.6318       -.15010E-07   -.24934E-04
  14  Prefactor     .10000E-03    2.5425        .18673E-07** at limit **
  15  Prefactor     .10000E-03    22.009        .13195E-06** at limit **
  16  Prefactor     1.4062        1.6789        .96314E-07   -.41196E-04
  17  Prefactor     .10000E-03    18.692        .65548E-06** at limit **
  18  Prefactor     .10000E-03    54.689        .12210E-05** at limit **
  19  Prefactor     15.378        11.359        .28683E-06   -.27100E-04
  20  Prefactor     .10000E-03    4.8135       -.19674E-08** at limit **
  21  norm          1.5956        .45472       -.60810E-07    .86044E-04
  22  Prefactor     1.0636        2.0425        .43546E-06    .39771E-03
  23  Prefactor     .10000E-03    11.161        .96208E-06** at limit **
  24  Prefactor     4.2969        40.223        .32229E-05    .10945E-04
  25  norm          .10000E-03    5.2263        .14472E-06** at limit **
  26  Normalizat    .77306        .18168       -.39314E-06   -.12794E-03
  27  Prefactor     .95456        .20771       -.17297E-06   -.88553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.8694
  Prefactor  = 22.2229
  Prefactor  = 0.0001
  Prefactor  = 3.82665
  norm       = 5.23188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.09318
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.74316
  Prefactor  = 6.49727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.40618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3781
  Prefactor  = 0.0001
  norm       = 1.59562
  Prefactor  = 1.06361
  Prefactor  = 0.0001
  Prefactor  = 4.29691
  norm       = 0.0001
  Normalizat = 0.773061
  Prefactor  = 0.954557
 **********
 **   18 **HESSE 
 **********

 FCN=   4412.958     FROM HESSE     STATUS=OK           492 CALLS     3339 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.869        34.535        .26583E-03   -1.4198    
   2  Prefactor     22.223        9.2277        .84961E-04   -1.4765    
   3  Prefactor     .10000E-03    8.7732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8267        3.2125        .10246E-03   -1.5317    
   5  norm          5.2319        6.8558        .87857E-03   -1.5250    
   6  Prefactor     .10000E-03    12.073        .20443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.0932        4.5679        .11707E-03   -1.5214    
   9  norm          .10000E-03    3.1693        .11542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7432        5.0371        .13402E-03   -1.5229    
  13  Prefactor     6.4973        4.6302        .11659E-03   -1.5198    
  14  Prefactor     .10000E-03    2.5505        .10342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4062        1.6564        .90564E-04   -1.5471    
  17  Prefactor     .10000E-03    19.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    55.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.378        11.322        .10220E-03   -1.4923    
  20  Prefactor     .10000E-03    4.8525        .14230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5956        .46230        .20307E-04   -1.5455    
  22  Prefactor     1.0636        1.7787        .12973E-02   -1.5502    
  23  Prefactor     .10000E-03    11.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.2969        41.180        .19597E-03   -1.5293    
  25  norm          .10000E-03    5.2394        .14830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .77306        .20551        .24049E-03   -1.0108    
  27  Prefactor     .95456        .23752        .25839E-03   -.94260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62574e-10
Minuit parameter uncertainties:
  1  34.5468
  2  9.22826
  3  3.99064e-06
  4  3.21264
  5  6.85681
  6  6.58332e-05
  7  3.10152e-05
  8  4.56818
  9  7.97735e-07
  10  0.000173556
  11  2.61873e-05
  12  5.03745
  13  4.63047
  14  1.09545e-06
  15  3.94089e-05
  16  1.65643
  17  1.33097e-05
  18  0.000309908
  19  11.3232
  20  3.75952e-06
  21  0.462306
  22  1.77883
  23  9.43253e-06
  24  26.6279
  25  1.40042e-06
  26  0.205718
  27  0.237779
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.736e-04  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:  9.546e-01  2.378e-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.731e-01  2.057e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895594/likelihoodResults_249696001_249955201_4FGL_J1028.3+3108_daily_bin40.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) = 4412.95816971
delta logL = -0.000144278157677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4412.95802543
delta logL = -3.70800989913e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1636       1.0000          .0000       10.000    
     3 'Normalizat'    .77306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95456       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=   4412.958     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      226 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1097.4        .90712E-02** at limit **
   2  Index         2.1634        5.8252        .50000       -.11859E-05
   3  Normalizat    .77306        .27014E-01    .43258E-01    .11818E-05
   4  Prefactor     .95456        .32137E-01    .45697E-01    .33298E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1634
  Normalizat = 0.773061
  Prefactor  = 0.954557
 **********
 **   18 **HESSE 
 **********

 FCN=   4412.958     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      257 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6450.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1634        8.6971        .50000       -.60325    
   3  Normalizat    .77306        .50028E-01    .24049E-03   -1.0108    
   4  Prefactor     .95456        .59524E-01    .25839E-03   -.94260    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82285e-10
Minuit parameter uncertainties:
  1  0.000328903
  2  41.0451
  3  0.0500305
  4  0.0595277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895594': 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) = 4412.95802543
delta logL = -2.28737917496e-09

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.289e-04  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.163e+00  4.105e+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:  9.546e-01  5.953e-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:  7.731e-01  5.003e-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/895594/cmap_HighResolution_249696001_249955201_4FGL_J1028.3+3108_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-01 22:59:19.785385', job_id='895594', GAL2='0.95', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630562359.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-2.29e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='40' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 22:59:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 895594: <4FGL_J1028.3+3108_daily_bin40> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin40> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:45:38 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:45:46 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:46 2021
Terminated at Wed Sep  1 22:59:20 2021
Results reported at Wed Sep  1 22:59:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin40 157.077 31.1389 249696001 249955201 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 :                                   620.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            822 sec.

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

