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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin35
RA = 157.077, Dec = 31.1389
tmin = 248400001, tmax = 248659201
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='895586', job_status='RUN', time_executed='2021-09-01 22:49:16.641603', time_epoch_executed='1630561756.64' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895586

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895586/ft1_4FGL_J1028.3+3108_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895586/ft2_4FGL_J1028.3+3108_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895586/ft1_4FGL_J1028.3+3108_daily_bin35.fits outfile=/scratch/kocevski/895586/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin35.fits ra=157.077 dec=31.1389 rad=12.0 tmin=248400001.0 tmax=248659201.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.46
user 1.28
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895586/ft1_filtered_4FGL_J1028.3+3108_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/895586/ft2_4FGL_J1028.3+3108_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/895586/ltcube_248400001_248659201_4FGL_J1028.3+3108_daily_bin35.fits outfile=/scratch/kocevski/895586/expmap_248400001_248659201_4FGL_J1028.3+3108_daily_bin35.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/895586/ltcube_248400001_248659201_4FGL_J1028.3+3108_daily_bin35.fits
.....................!
real 194.42
user 187.57
sys 5.28

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/895586/ft1_filtered_4FGL_J1028.3+3108_daily_bin35.fits scfile=/scratch/kocevski/895586/ft2_4FGL_J1028.3+3108_daily_bin35.fits outfile=/scratch/kocevski/895586/cmap_248400001_248659201_4FGL_J1028.3+3108_daily_bin35.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.56
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.989       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7178       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6343       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5862       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4155       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7405       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.591       1.0000         .10000E-03   10000.    
    11 'Prefactor '    62.448       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3082       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4698       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8088       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13768E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .81428       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7100       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.063       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0615       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2000       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .71560       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=   6769.520     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3334 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.984        25.841       -.32453E-05    .41719E-05
   2  Prefactor     3.7181        4.8995       -.54635E-07   -.65457E-03
   3  Prefactor     9.6349        8.2928       -.11759E-06    .10954E-04
   4  Prefactor     2.5865        2.4598       -.22698E-06   -.18465E-04
   5  norm          1.4164        2.8743        .53839E-06   -.12786E-02
   6  Prefactor     1.3702        3.0592       -.19423E-06   -.32490E-04
   7  Prefactor     .10000E-03    10.634        .13752E-06** at limit **
   8  Prefactor     2.7387        4.1399       -.22402E-06   -.47377E-05
   9  norm          .10000E-03    3.0601        .60016E-06** at limit **
  10  Prefactor     34.597        33.023        .58504E-05    .81227E-05
  11  Prefactor     62.437        38.355       -.74962E-05   -.76202E-04
  12  Prefactor     5.3080        4.5964        .34032E-07   -.31680E-04
  13  Prefactor     .10000E-03    7.2411        .10135E-05** at limit **
  14  Prefactor     2.4694        4.4939       -.52096E-06   -.98934E-03
  15  Prefactor     .10000E-03    44.651        .10228E-05** at limit **
  16  Prefactor     1.8087        1.5598       -.17687E-06    .41700E-04
  17  Prefactor     .10000E-03    3.1726        .33262E-06** at limit **
  18  Prefactor     .10000E-03    18.560        .69464E-06** at limit **
  19  Prefactor     .10000E-03    4.2103       -.29167E-06** at limit **
  20  Prefactor     .10000E-03    4.1497       -.14254E-06** at limit **
  21  norm          .81435        .27176        .11969E-06   -.48296E-03
  22  Prefactor     4.7102        2.8006       -.48209E-07    .55458E-05
  23  Prefactor     25.060        18.618       -.51326E-05   -.94608E-04
  24  Prefactor     .10000E-03    5.5120       -.39649E-06** at limit **
  25  norm          3.0784        24.579        .93913E-05    .37812E-04
  26  Normalizat    1.2002        .17305        .17297E-05   -.12622E-03
  27  Prefactor     .71530        .18460       -.78926E-06    .47315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.9839
  Prefactor  = 3.71806
  Prefactor  = 9.63485
  Prefactor  = 2.58646
  norm       = 1.41637
  Prefactor  = 1.37023
  Prefactor  = 0.0001
  Prefactor  = 2.73871
  norm       = 0.0001
  Prefactor  = 34.5971
  Prefactor  = 62.4375
  Prefactor  = 5.30804
  Prefactor  = 0.000100005
  Prefactor  = 2.46938
  Prefactor  = 0.0001
  Prefactor  = 1.80874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.814348
  Prefactor  = 4.71016
  Prefactor  = 25.06
  Prefactor  = 0.0001
  norm       = 3.07839
  Normalizat = 1.20022
  Prefactor  = 0.715299
 **********
 **   18 **HESSE 
 **********

 FCN=   6769.520     FROM HESSE     STATUS=OK           494 CALLS     3828 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.984        25.783        .59123E-04   -1.4351    
   2  Prefactor     3.7181        5.0767        .10313E-02   -1.5322    
   3  Prefactor     9.6349        8.2993        .12911E-03   -1.5087    
   4  Prefactor     2.5865        2.4476        .11808E-03   -1.5386    
   5  norm          1.4164        4.1313        .13886E-02   -1.5470    
   6  Prefactor     1.3702        2.9603        .18741E-03   -1.5474    
   7  Prefactor     .10000E-03    10.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7387        4.0336        .17840E-03   -1.5377    
   9  norm          .10000E-03    3.0757        .14057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.597        32.999        .68136E-04   -1.4531    
  11  Prefactor     62.437        38.258        .50778E-04   -1.4126    
  12  Prefactor     5.3080        4.6046        .15655E-03   -1.5247    
  13  Prefactor     .10000E-03    7.4737        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4694        5.6061        .13009E-02   -1.5394    
  15  Prefactor     .10000E-03    44.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8087        1.5578        .90828E-04   -1.5439    
  17  Prefactor     .10000E-03    3.1873        .14304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.347        .32628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1582        .16363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .81435        .27271        .23393E-04   -1.5527    
  22  Prefactor     4.7102        2.8059        .10165E-03   -1.5274    
  23  Prefactor     25.060        18.494        .80016E-04   -1.4706    
  24  Prefactor     .10000E-03    5.5129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0784        24.222        .23185E-03   -1.5357    
  26  Normalizat    1.2002        .20147        .21969E-03   -.86596    
  27  Prefactor     .71530        .21210        .31260E-03   -1.0293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08293e-09
Minuit parameter uncertainties:
  1  25.7897
  2  5.07731
  3  8.30029
  4  2.44768
  5  4.13213
  6  2.9606
  7  1.17197e-06
  8  4.03398
  9  8.60511e-06
  10  33.0163
  11  38.2733
  12  4.60487
  13  0.000375206
  14  5.60728
  15  0.000251136
  16  1.5578
  17  7.74066e-07
  18  9.34073e-06
  19  0.000199413
  20  3.67888e-06
  21  0.272712
  22  2.80594
  23  18.498
  24  1.71992e-05
  25  17.2796
  26  0.201605
  27  0.21234
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.460e+01  3.302e+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:  7.153e-01  2.123e-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.200e+00  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.77
Ra Dec: 157.077 31.139
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.85e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 7.81e-06 +/- 7.46e-06

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) = 6768.31431362
delta logL = 1.20590686944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6768.29922126
delta logL = 1.2209992298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.453       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0881       1.0000          .0000       10.000    
     3 'Normalizat'    1.2159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70874       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=   6768.299     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      216 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.542        30.676        .18151E-02    .10028E-04
   2  Index         1.0872        .48337        .29878       -.50164E-04
   3  Normalizat    1.2155        .15770        .49423E-01   -.71522E-04
   4  Prefactor     .70886        .17850        .70917E-01    .12384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.5417
  Index      = 1.08719
  Normalizat = 1.2155
  Prefactor  = 0.708863
 **********
 **   18 **HESSE 
 **********

 FCN=   6768.299     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.542        38.151        .72605E-04   -1.4602    
   2  Index         1.0872        .63489        .12473E-01   -.89877    
   3  Normalizat    1.2155        .18605        .21850E-03   -.86125    
   4  Prefactor     .70886        .21031        .31385E-03   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44896e-11
Minuit parameter uncertainties:
  1  38.1814
  2  0.639376
  3  0.186147
  4  0.210547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895586': 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) = 6768.29920754
delta logL = 1.22101294749

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.054e+01  3.818e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.087e+00  6.394e-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:  7.089e-01  2.105e-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.216e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.20
Ra Dec: 157.077 31.139
Photon Index (Free Index): 1.09 +/- 0.64
Photon Flux (Free Index): 3.73e-09 +/- 4.39e-09
Energy Flux (Free Index): 4.31e-05 +/- 6.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/895586/cmap_HighResolution_248400001_248659201_4FGL_J1028.3+3108_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-08', energy_flux2='4.31e-05', photon_flux_error='1.77e-08', dlogl='1.22e+00', energy_flux='7.81e-06', photon_flux2='3.73e-09', job_status='DONE', time_completed='2021-09-01 23:01:20.924012', photon_index_error2='0.64', photon_index2='1.09', ts='7.77', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='6.46e-05', EG='1.20', time_epoch_completed='1630562480.92', return_code='0', job_id='895586', GAL2='0.71', EG2='1.22', return_code2='0', energy_flux_error='7.46e-06', photon_flux_error2='4.39e-09', ts2='10.20', photon_index='2.23' WHERE bin_id='35' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:01:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 895586: <4FGL_J1028.3+3108_daily_bin35> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin35> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:45:37 2021
Job was executed on host(s) <bullet0051>, 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 23:01:21 2021
Results reported at Wed Sep  1 23:01:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin35 157.077 31.1389 248400001 248659201 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 :                                   723.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            944 sec.

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

