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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1106
RA = 157.077, Dec = 31.1389
tmin = 526003201, tmax = 526262401
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='902691', job_status='RUN', time_executed='2021-09-01 23:15:01.642342', time_epoch_executed='1630563301.64' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902691

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902691/ft1_4FGL_J1028.3+3108_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902691/ft2_4FGL_J1028.3+3108_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902691/ft1_4FGL_J1028.3+3108_daily_bin1106.fits outfile=/scratch/kocevski/902691/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1106.fits ra=157.077 dec=31.1389 rad=12.0 tmin=526003201.0 tmax=526262401.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.72
user 3.49
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902691/ft1_filtered_4FGL_J1028.3+3108_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/902691/ft2_4FGL_J1028.3+3108_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/902691/ltcube_526003201_526262401_4FGL_J1028.3+3108_daily_bin1106.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/902691/ft2_4FGL_J1028.3+3108_daily_bin1106.fits
.....................!
real 15.13
user 14.69
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902691/ft1_filtered_4FGL_J1028.3+3108_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/902691/ft2_4FGL_J1028.3+3108_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/902691/ltcube_526003201_526262401_4FGL_J1028.3+3108_daily_bin1106.fits outfile=/scratch/kocevski/902691/expmap_526003201_526262401_4FGL_J1028.3+3108_daily_bin1106.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/902691/ltcube_526003201_526262401_4FGL_J1028.3+3108_daily_bin1106.fits
.....................!
real 192.42
user 187.81
sys 4.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/902691/ft1_filtered_4FGL_J1028.3+3108_daily_bin1106.fits scfile=/scratch/kocevski/902691/ft2_4FGL_J1028.3+3108_daily_bin1106.fits outfile=/scratch/kocevski/902691/cmap_526003201_526262401_4FGL_J1028.3+3108_daily_bin1106.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.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902691/ft1_filtered_4FGL_J1028.3+3108_daily_bin1106.fits scfile=/scratch/kocevski/902691/ft2_4FGL_J1028.3+3108_daily_bin1106.fits outfile=/scratch/kocevski/902691/cmap_HighResolution_526003201_526262401_4FGL_J1028.3+3108_daily_bin1106.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12217E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6848       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4985       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10936E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46574       1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    87.677       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.140       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1061       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49418       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9105       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8114       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8088       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4274       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85377       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2080       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=   6144.769     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3301 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.570        .78146E-06** at limit **
   2  Prefactor     9.6809        6.7763        .12925E-06   -.93015E-04
   3  Prefactor     .10000E-03    6.0628        .81628E-06** at limit **
   4  Prefactor     .10000E-03    .74981        .16305E-07** at limit **
   5  norm          1.5002        2.1911        .12500E-05   -.21385E-02
   6  Prefactor     .10000E-03    1.4377       -.35136E-08** at limit **
   7  Prefactor     .10000E-03    10.903       -.13899E-05** at limit **
   8  Prefactor     .46570        2.1248       -.20338E-06   -.14732E-03
   9  norm          .10000E-03    3.0607       -.42252E-07** at limit **
  10  Prefactor     87.690        53.128        .10970E-04    .40085E-03
  11  Prefactor     11.160        53.535        .46786E-04   -.21901E-04
  12  Prefactor     3.0441        2.4598        .19295E-07    .18130E-03
  13  Prefactor     1.0956        7.3111       -.14839E-04    .35319E-04
  14  Prefactor     .70918        4.9466        .28756E-06   -.70437E-04
  15  Prefactor     .10000E-03    6.2958       -.94989E-06** at limit **
  16  Prefactor     .49406        1.4072        .18035E-06   -.79895E-05
  17  Prefactor     .10000E-03    8.6839       -.11354E-06** at limit **
  18  Prefactor     .10000E-03    11.324        .99856E-06** at limit **
  19  Prefactor     6.9155        8.6912       -.66992E-06   -.12561E-03
  20  Prefactor     6.8104        8.0896        .34946E-06   -.19213E-03
  21  norm          1.8088        .36831       -.12848E-07    .43420E-03
  22  Prefactor     .10000E-03    .91492        .29315E-07** at limit **
  23  Prefactor     4.4339        15.898        .24061E-05    .51554E-04
  24  Prefactor     .10000E-03    7.0215       -.15751E-06** at limit **
  25  norm          .10000E-03    8.3524        .91098E-06** at limit **
  26  Normalizat    .85381        .16030       -.10494E-05    .16675E-03
  27  Prefactor     1.2079        .19017       -.16525E-05    .16131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 9.68092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.465704
  norm       = 0.0001
  Prefactor  = 87.6898
  Prefactor  = 11.1601
  Prefactor  = 3.04407
  Prefactor  = 1.09557
  Prefactor  = 0.709177
  Prefactor  = 0.0001
  Prefactor  = 0.494055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.91551
  Prefactor  = 6.81039
  norm       = 1.80879
  Prefactor  = 0.0001
  Prefactor  = 4.43394
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.853811
  Prefactor  = 1.20786
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.769     FROM HESSE     STATUS=OK           492 CALLS     3793 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.434        .53937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6809        6.7727        .12877E-03   -1.5086    
   3  Prefactor     .10000E-03    6.1155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .75744        .66249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5002        6.8070        .17494E-02   -1.5463    
   6  Prefactor     .10000E-03    1.4550        .91655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .46570        2.0262        .22025E-03   -1.5571    
   9  norm          .10000E-03    3.0720        .13391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     87.690        53.847        .42908E-04   -1.3832    
  11  Prefactor     11.160        54.060        .12003E-03   -1.5040    
  12  Prefactor     3.0441        2.4607        .10740E-03   -1.5359    
  13  Prefactor     1.0956        7.3041        .20838E-03   -1.5499    
  14  Prefactor     .70918        9.8120        .32199E-02   -1.5540    
  15  Prefactor     .10000E-03    6.2998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .49406        1.3146        .14613E-02   -1.5567    
  17  Prefactor     .10000E-03    8.8148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9155        8.6541        .15262E-03   -1.5182    
  20  Prefactor     6.8104        8.1055        .76867E-03   -1.5186    
  21  norm          1.8088        .36922        .19845E-04   -1.5439    
  22  Prefactor     .10000E-03    .92435        .73168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.4339        15.890        .19138E-03   -1.5287    
  24  Prefactor     .10000E-03    7.0381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    8.4299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .85381        .18661        .24396E-03   -.98103    
  27  Prefactor     1.2079        .22485        .25468E-03   -.86090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18647e-08
Minuit parameter uncertainties:
  1  0.00068568
  2  6.77327
  3  3.46965e-05
  4  1.28533e-06
  5  6.39213
  6  1.32083e-07
  7  4.81456e-05
  8  1.94272
  9  8.90511e-06
  10  53.8771
  11  49.1968
  12  2.46075
  13  5.65835
  14  5.27644
  15  3.46943e-05
  16  1.31469
  17  3.61535e-05
  18  4.16509e-05
  19  8.6557
  20  8.10678
  21  0.369217
  22  2.25086e-06
  23  15.9054
  24  1.19256e-05
  25  2.64645e-05
  26  0.186748
  27  0.225031
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  8.769e+01  5.388e+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.208e+00  2.250e-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.538e-01  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.84
Ra Dec: 157.077 31.139
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.69e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.22e-05

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) = 6144.548
delta logL = 0.220715050093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6144.54718603
delta logL = 0.221529018503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    124.65       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8951       1.0000          .0000       10.000    
     3 'Normalizat'    .87196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1943       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=   6144.547     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      312 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     124.66        89.005        .18026E-03    .77573E-05
   2  Index         1.8951        .49469        .69754E-02    .32106E-03
   3  Normalizat    .87191        .18352        .24169E-03   -.24648E-04
   4  Prefactor     1.1944        .22293        .25584E-03   -.16131E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 124.664
  Index      = 1.89508
  Normalizat = 0.871908
  Prefactor  = 1.19441
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.547     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     124.66        87.342        .72105E-05   -1.3470    
   2  Index         1.8951        .48525        .13951E-02   -.67000    
   3  Normalizat    .87191        .18358        .96677E-05   -.97454    
   4  Prefactor     1.1944        .22310        .10234E-04   -.86504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71055e-12
Minuit parameter uncertainties:
  1  87.4322
  2  0.486497
  3  0.183713
  4  0.223272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902691': 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): 0
logL (Free Index) = 6144.54718597
delta logL = 0.221529075483

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.247e+02  8.743e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.895e+00  4.865e-01  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.194e+00  2.233e-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.719e-01  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.27
Ra Dec: 157.077 31.139
Photon Index (Free Index): 1.90 +/- 0.49
Photon Flux (Free Index): 3.42e-08 +/- 2.90e-08
Energy Flux (Free Index): 3.11e-05 +/- 3.11e-05

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/902691/cmap_HighResolution_526003201_526262401_4FGL_J1028.3+3108_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.69e-08', energy_flux2='3.11e-05', photon_flux_error='2.88e-08', dlogl='2.22e-01', energy_flux='1.98e-05', photon_flux2='3.42e-08', job_status='DONE', time_completed='2021-09-01 23:26:50.977397', photon_index_error2='0.49', photon_index2='1.90', ts='4.84', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='3.11e-05', EG='0.85', time_epoch_completed='1630564010.98', return_code='0', job_id='902691', GAL2='1.19', EG2='0.87', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='2.90e-08', ts2='5.27', photon_index='2.23' WHERE bin_id='1106' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:26:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 902691: <4FGL_J1028.3+3108_daily_bin1106> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1106> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 23:10:26 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:11:23 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:11:23 2021
Terminated at Wed Sep  1 23:26:51 2021
Results reported at Wed Sep  1 23:26:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1106 157.077 31.1389 526003201 526262401 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 :                                   688.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            985 sec.

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

