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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin933
RA = 157.077, Dec = 31.1389
tmin = 481161601, tmax = 481420801
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='901388', job_status='RUN', time_executed='2021-09-01 23:07:45.871947', time_epoch_executed='1630562865.87' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901388

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901388/ft1_4FGL_J1028.3+3108_daily_bin933.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901388/ft2_4FGL_J1028.3+3108_daily_bin933.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901388/ft1_4FGL_J1028.3+3108_daily_bin933.fits outfile=/scratch/kocevski/901388/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin933.fits ra=157.077 dec=31.1389 rad=12.0 tmin=481161601.0 tmax=481420801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.71
user 3.41
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901388/ft1_filtered_4FGL_J1028.3+3108_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/901388/ft2_4FGL_J1028.3+3108_daily_bin933.fits sctable="SC_DATA" expcube=/scratch/kocevski/901388/ltcube_481161601_481420801_4FGL_J1028.3+3108_daily_bin933.fits outfile=/scratch/kocevski/901388/expmap_481161601_481420801_4FGL_J1028.3+3108_daily_bin933.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/901388/ltcube_481161601_481420801_4FGL_J1028.3+3108_daily_bin933.fits
.....................!
real 192.52
user 186.51
sys 5.29

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1028.3+3108 @ 157.077 31.1389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/901388/ft1_filtered_4FGL_J1028.3+3108_daily_bin933.fits scfile=/scratch/kocevski/901388/ft2_4FGL_J1028.3+3108_daily_bin933.fits outfile=/scratch/kocevski/901388/cmap_481161601_481420801_4FGL_J1028.3+3108_daily_bin933.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901388/ft1_filtered_4FGL_J1028.3+3108_daily_bin933.fits scfile=/scratch/kocevski/901388/ft2_4FGL_J1028.3+3108_daily_bin933.fits outfile=/scratch/kocevski/901388/cmap_HighResolution_481161601_481420801_4FGL_J1028.3+3108_daily_bin933.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/901388/ft1_filtered_4FGL_J1028.3+3108_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/901388/ft2_4FGL_J1028.3+3108_daily_bin933.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901388/Model_4FGL_J1028.3+3108_daily_bin933.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/901388/ft1_filtered_4FGL_J1028.3+3108_daily_bin933.fits.....................!
real 56.26
user 54.47
sys 1.45

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2218       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4718       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19647E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    23.605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22326E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6244       1.0000         .10000E-03   10000.    
     9 'norm      '    142.67       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.890       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6767       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6213       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.857       1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.866       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .98959       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.010       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.811       1.0000         .10000E-03   10000.    
    25 'norm      '    3.4360       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81007       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3593       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=   6581.051     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3353 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2014        63.996       -.18244E-04   -.29156E-04
   2  Prefactor     .10000E-03    13.217        .12245E-05** at limit **
   3  Prefactor     5.4742        7.3967       -.44554E-07   -.11195E-03
   4  Prefactor     .59158E-01    1.1507        .81890E-07   -.30505E-03
   5  norm          23.600        10.692        .31562E-06   -.88566E-04
   6  Prefactor     .10000E-03    2.2916        .15017E-06** at limit **
   7  Prefactor     .10000E-03    31.308        .48433E-05** at limit **
   8  Prefactor     1.6301        3.9130       -.11870E-05   -.87210E-03
   9  norm          142.68        22.824        .37057E-05   -.10303E-02
  10  Prefactor     41.900        63.024        .13853E-04   -.16716E-03
  11  Prefactor     .10000E-03    16.074       -.25371E-05** at limit **
  12  Prefactor     1.6772        4.3443       -.22584E-05   -.10149E-02
  13  Prefactor     2.6236        3.5275       -.40206E-06   -.22489E-03
  14  Prefactor     12.862        8.2115       -.35305E-07   -.87096E-04
  15  Prefactor     37.869        30.123        .31889E-05   -.14024E-03
  16  Prefactor     .10000E-03    .75497       -.88312E-08** at limit **
  17  Prefactor     .10000E-03    11.341        .21128E-05** at limit **
  18  Prefactor     .10000E-03    10.064       -.23587E-05** at limit **
  19  Prefactor     .10000E-03    6.2378       -.14138E-06** at limit **
  20  Prefactor     .10000E-03    13.611        .89043E-06** at limit **
  21  norm          .98968        .32153        .19316E-07    .51442E-04
  22  Prefactor     .10000E-03    1.8839        .29227E-07** at limit **
  23  Prefactor     24.002        17.320       -.23150E-05    .16195E-03
  24  Prefactor     10.814        15.025        .11655E-05   -.50178E-04
  25  norm          3.4480        14.477        .30762E-05   -.12477E-03
  26  Normalizat    .80995        .18676       -.18900E-05    .87388E-05
  27  Prefactor     1.3590        .20824        .17468E-06   -.65167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.20137
  Prefactor  = 0.0001
  Prefactor  = 5.47416
  Prefactor  = 0.0591577
  norm       = 23.6003
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.63007
  norm       = 142.679
  Prefactor  = 41.9004
  Prefactor  = 0.0001
  Prefactor  = 1.67722
  Prefactor  = 2.62356
  Prefactor  = 12.8621
  Prefactor  = 37.8686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.989678
  Prefactor  = 0.0001
  Prefactor  = 24.0025
  Prefactor  = 10.8144
  norm       = 3.44798
  Normalizat = 0.809955
  Prefactor  = 1.35898
 **********
 **   18 **HESSE 
 **********

 FCN=   6581.051     FROM HESSE     STATUS=OK           490 CALLS     3843 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2014        67.963        .40790E-03   -1.5489    
   2  Prefactor     .10000E-03    13.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4742        7.3751        .17177E-03   -1.5240    
   4  Prefactor     .59158E-01    16.274        .16550E-02   -1.5659    
   5  norm          23.600        10.684        .82446E-04   -1.4736    
   6  Prefactor     .10000E-03    7.1147        .22076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6301        3.7248        .22669E-03   -1.5453    
   9  norm          142.68        22.804        .16865E-03   -1.3313    
  10  Prefactor     41.900        62.366        .61936E-04   -1.4412    
  11  Prefactor     .10000E-03    16.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6772        4.4453        .26287E-03   -1.5449    
  13  Prefactor     2.6236        3.5115        .17094E-03   -1.5384    
  14  Prefactor     12.862        8.2106        .11171E-03   -1.4991    
  15  Prefactor     37.869        30.135        .65133E-04   -1.4476    
  16  Prefactor     .10000E-03    .75942        .68786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .98968        .32344        .24476E-04   -1.5509    
  22  Prefactor     .10000E-03    1.9375        .21725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.002        17.267        .81749E-04   -1.4728    
  24  Prefactor     10.814        15.065        .12185E-03   -1.5050    
  25  norm          3.4480        14.282        .21821E-03   -1.5337    
  26  Normalizat    .80995        .21892        .29730E-03   -.99700    
  27  Prefactor     1.3590        .24931        .27545E-03   -.81570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15717e-09
Minuit parameter uncertainties:
  1  18.0929
  2  4.56867e-05
  3  7.37635
  4  1.96128
  5  10.6853
  6  0.000107783
  7  0.000543044
  8  3.7253
  9  22.8059
  10  62.4635
  11  0.000103544
  12  4.44613
  13  3.51176
  14  8.21136
  15  30.1468
  16  1.00081e-06
  17  6.15569e-05
  18  8.29129e-05
  19  9.38381e-06
  20  2.04984e-05
  21  0.323438
  22  4.83862e-06
  23  17.2705
  24  15.0705
  25  14.0403
  26  0.219162
  27  0.249534
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.190e+01  6.246e+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.359e+00  2.495e-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:  8.100e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 157.077 31.139
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901388/likelihoodResults_481161601_481420801_4FGL_J1028.3+3108_daily_bin933.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6580.27250493
delta logL = 0.778360580597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6580.01387607
delta logL = 1.03698943644

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64540E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.0848       1.0000          .0000       10.000    
     3 'Normalizat'    .69907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4597       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=   6580.014     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      441 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63948E-03    .73128E-02    .36268E-03** at limit **
   2  Index         7.0886        1.7869        .97857E-01    .19001E-03
   3  Normalizat    .69923        .43112E-01    .71884E-01    .25492E-04
   4  Prefactor     1.4596        .50479E-01    .60485E-01   -.89094E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00063948
  Index      = 7.08862
  Normalizat = 0.699229
  Prefactor  = 1.45958
 **********
 **   18 **HESSE 
 **********

 FCN=   6580.014     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      476 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63948E-03    .18712E-01    .15728E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.0886        3.2185        .37176E-02    .43094    
   3  Normalizat    .69923        .16440        .31817E-03   -1.0392    
   4  Prefactor     1.4596        .18810        .26746E-03   -.78678    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57472e-08
Minuit parameter uncertainties:
  1  0.00635447
  2  3.5767
  3  0.164521
  4  0.18819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901388': 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) = 6580.01387335
delta logL = 1.03699215358

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.460e+00  1.882e-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.992e-01  1.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 157.077 31.139
Photon Index (Free Index): 7.09 +/- 3.58
Photon Flux (Free Index): 9.40e-08 +/- 6.46e-08
Energy Flux (Free Index): 1.12e-05 +/- 8.03e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='1.04e+00', photon_flux2='9.40e-08', job_status='DONE', time_completed='2021-09-01 23:21:30.385097', photon_index_error2='3.58', photon_index2='7.09', ts='0.60', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='8.03e-06', EG='0.81', time_epoch_completed='1630563690.39', return_code='0', job_id='901388', GAL2='1.46', EG2='0.70', return_code2='102', photon_flux_error2='6.46e-08', ts2='2.95', photon_index='2.23' WHERE bin_id='933' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:21:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 901388: <4FGL_J1028.3+3108_daily_bin933> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin933> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 23:05:44 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:07:30 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:07:30 2021
Terminated at Wed Sep  1 23:21:31 2021
Results reported at Wed Sep  1 23:21:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin933 157.077 31.1389 481161601 481420801 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 :                                   818.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             345.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            947 sec.

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

