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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin55
RA = 157.077, Dec = 31.1389
tmin = 253584001, tmax = 253843201
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='895617', job_status='RUN', time_executed='2021-09-01 22:48:37.799366', time_epoch_executed='1630561717.8' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895617/ft1_4FGL_J1028.3+3108_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895617/ft2_4FGL_J1028.3+3108_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895617/ft1_4FGL_J1028.3+3108_daily_bin55.fits outfile=/scratch/kocevski/895617/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin55.fits ra=157.077 dec=31.1389 rad=12.0 tmin=253584001.0 tmax=253843201.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.52
user 1.27
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895617/ft1_filtered_4FGL_J1028.3+3108_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/895617/ft2_4FGL_J1028.3+3108_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/895617/ltcube_253584001_253843201_4FGL_J1028.3+3108_daily_bin55.fits outfile=/scratch/kocevski/895617/expmap_253584001_253843201_4FGL_J1028.3+3108_daily_bin55.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/895617/ltcube_253584001_253843201_4FGL_J1028.3+3108_daily_bin55.fits
.....................!
real 193.57
user 187.54
sys 5.24

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/895617/ft1_filtered_4FGL_J1028.3+3108_daily_bin55.fits scfile=/scratch/kocevski/895617/ft2_4FGL_J1028.3+3108_daily_bin55.fits outfile=/scratch/kocevski/895617/cmap_253584001_253843201_4FGL_J1028.3+3108_daily_bin55.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895617/ft1_filtered_4FGL_J1028.3+3108_daily_bin55.fits scfile=/scratch/kocevski/895617/ft2_4FGL_J1028.3+3108_daily_bin55.fits outfile=/scratch/kocevski/895617/cmap_HighResolution_253584001_253843201_4FGL_J1028.3+3108_daily_bin55.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4402       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.855       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.4412       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.617       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.084       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10571E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4851       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.954       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.217       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .79197       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2594       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.5768       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4100       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .61582       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=   5588.349     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3307 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4383        29.735       -.20624E-05   -.63489E-04
   2  Prefactor     10.858        7.1440        .45344E-06   -.67267E-03
   3  Prefactor     .10000E-03    3.6608        .41260E-07** at limit **
   4  Prefactor     .10000E-03    1.2165        .47071E-07** at limit **
   5  norm          8.4415        7.8433        .18804E-06    .40615E-04
   6  Prefactor     1.1856        2.2700        .10844E-06   -.16203E-03
   7  Prefactor     12.611        25.078       -.20837E-05   -.54724E-04
   8  Prefactor     .10000E-03    1.7232        .26051E-07** at limit **
   9  norm          3.9732        9.7092        .34214E-05    .34782E-03
  10  Prefactor     .10000E-03    52.699        .20399E-05** at limit **
  11  Prefactor     17.079        16.938        .14216E-07    .21914E-04
  12  Prefactor     .10003E-03    2.6690       -.35306E-06** at limit **
  13  Prefactor     .10000E-03    1.8194       -.11120E-07** at limit **
  14  Prefactor     5.4840        5.0307        .11581E-05   -.13250E-02
  15  Prefactor     23.947        27.811       -.16845E-05   -.84210E-04
  16  Prefactor     .10000E-03    1.0576        .28181E-07** at limit **
  17  Prefactor     .10000E-03    2.1552       -.34049E-07** at limit **
  18  Prefactor     .10000E-03    6.0890       -.19741E-08** at limit **
  19  Prefactor     12.218        7.5926       -.12021E-06   -.53256E-04
  20  Prefactor     .10000E-03    5.1928       -.49082E-06** at limit **
  21  norm          .79196        .27851        .14964E-07    .31452E-03
  22  Prefactor     3.2593        2.7134        .45138E-07    .61336E-05
  23  Prefactor     1.5792        21.527       -.21616E-05   -.15247E-03
  24  Prefactor     .10000E-03    5.4409        .16805E-06** at limit **
  25  norm          .10000E-03    8.1071       -.25046E-06** at limit **
  26  Normalizat    1.4099        .17672       -.22716E-06    .72487E-04
  27  Prefactor     .61601        .19523       -.26250E-06    .18284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43835
  Prefactor  = 10.8576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.44146
  Prefactor  = 1.18556
  Prefactor  = 12.6113
  Prefactor  = 0.0001
  norm       = 3.9732
  Prefactor  = 0.000100001
  Prefactor  = 17.0793
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 5.48402
  Prefactor  = 23.9473
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2175
  Prefactor  = 0.0001
  norm       = 0.791956
  Prefactor  = 3.25933
  Prefactor  = 1.57916
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.40985
  Prefactor  = 0.616012
 **********
 **   18 **HESSE 
 **********

 FCN=   5588.349     FROM HESSE     STATUS=OK           494 CALLS     3801 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4383        30.055        .21807E-03   -1.5337    
   2  Prefactor     10.858        7.3699        .60800E-03   -1.5049    
   3  Prefactor     .10000E-03    3.6715        .13967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9890        .15912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.4415        7.8417        .13798E-03   -1.5127    
   6  Prefactor     1.1856        2.2203        .15057E-03   -1.5490    
   7  Prefactor     12.611        25.270        .11277E-03   -1.4998    
   8  Prefactor     .10000E-03    1.7332        .95719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9732        9.8740        .20232E-03   -1.5309    
  10  Prefactor     .10000E-03    53.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.079        16.937        .96901E-04   -1.4881    
  12  Prefactor     .10003E-03    53.257        .22690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8299        .98447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4840        6.0235        .85780E-03   -1.5240    
  15  Prefactor     23.947        27.741        .81843E-04   -1.4729    
  16  Prefactor     .10000E-03    5.7280        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1573        .10717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0900        .18017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.218        7.5906        .11461E-03   -1.5009    
  20  Prefactor     .10000E-03    5.2132        .16647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .79196        .27831        .22267E-04   -1.5530    
  22  Prefactor     3.2593        2.7172        .10799E-03   -1.5347    
  23  Prefactor     1.5792        23.064        .33835E-03   -1.5457    
  24  Prefactor     .10000E-03    5.4491        .17035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    8.1398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4099        .20504        .20365E-03   -.80344    
  27  Prefactor     .61601        .22398        .33323E-03   -1.0692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7413e-09
Minuit parameter uncertainties:
  1  20.3445
  2  7.3705
  3  1.55326e-06
  4  1.53866e-06
  5  7.84266
  6  2.22043
  7  25.2915
  8  9.68956e-07
  9  9.87803
  10  0.000368876
  11  16.9416
  12  0.00242832
  13  1.30312e-06
  14  6.02415
  15  27.7559
  16  0.000143167
  17  1.36919e-06
  18  8.53972e-07
  19  7.59118
  20  2.84081e-05
  21  0.278309
  22  2.71732
  23  12.0754
  24  1.81166e-05
  25  3.86928e-06
  26  0.205155
  27  0.224308
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.689e-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:  6.160e-01  2.243e-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.410e+00  2.052e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895617/likelihoodResults_253584001_253843201_4FGL_J1028.3+3108_daily_bin55.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) = 5588.34907143
delta logL = -8.97707441254e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5588.3489821
delta logL = -4.48241735285e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10929E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4243       1.0000          .0000       10.000    
     3 'Normalizat'    1.4099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61601       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=   5588.349     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      291 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10206E-03    8.4083        .18142E-01** at limit **
   2  Index         2.3539        5.0195        .50000        .81010E-05
   3  Normalizat    1.4099        .18986E-02    .20365E-03   -.10328E-04
   4  Prefactor     .61601        .21493E-02    .33323E-03   -.19447E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102061
  Index      = 2.35395
  Normalizat = 1.40985
  Prefactor  = 0.616013
 **********
 **   18 **HESSE 
 **********

 FCN=   5588.349     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10206E-03    96.646        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3539        8.5577        .50000       -.55767    
   3  Normalizat    1.4099        .64018E-02    .81460E-05   -.80344    
   4  Prefactor     .61601        .72473E-02    .13329E-04   -1.0692    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.14559e-10
Minuit parameter uncertainties:
  1  0.0282725
  2  179.535
  3  0.00640184
  4  0.00724729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895617': 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) = 5588.34898186
delta logL = -2.08169694815e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.021e-04  2.827e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.354e+00  1.795e+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:  6.160e-01  7.247e-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.410e+00  6.402e-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/895617/cmap_HighResolution_253584001_253843201_4FGL_J1028.3+3108_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2021-09-01 23:00:58.897678', job_id='895617', GAL2='0.62', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630562458.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='-2.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='55' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 895617: <4FGL_J1028.3+3108_daily_bin55> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin55 157.077 31.1389 253584001 253843201 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 :                                   738.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            919 sec.

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

