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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1347
RA = 158.275, Dec = 41.262
tmin = 588470401, tmax = 588729601
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='979139', job_status='RUN', time_executed='2021-09-02 03:36:16.044333', time_epoch_executed='1630578976.04' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/979139

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/979139/ft1_4FGL_J1033.1+4115_daily_bin1347.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/979139/ft2_4FGL_J1033.1+4115_daily_bin1347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/979139/ft1_4FGL_J1033.1+4115_daily_bin1347.fits outfile=/scratch/kocevski/979139/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1347.fits ra=158.275 dec=41.262 rad=12.0 tmin=588470401.0 tmax=588729601.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 4.94
user 4.68
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/979139/ft2_4FGL_J1033.1+4115_daily_bin1347.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/979139/ft2_4FGL_J1033.1+4115_daily_bin1347.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/979139/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1347.fits evtable="EVENTS" outfile="/scratch/kocevski/979139/ft1_filtered_4FGL_J1033.1+4115_daily_bin1347.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/979139/ft1_filtered_4FGL_J1033.1+4115_daily_bin1347.fits" evtable="EVENTS" scfile=/scratch/kocevski/979139/ft2_4FGL_J1033.1+4115_daily_bin1347.fits sctable="SC_DATA" outfile=/scratch/kocevski/979139/ltcube_588470401_588729601_4FGL_J1033.1+4115_daily_bin1347.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/979139/ft2_4FGL_J1033.1+4115_daily_bin1347.fits
.....................!
real 17.66
user 17.11
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/979139/ft1_filtered_4FGL_J1033.1+4115_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/979139/ft2_4FGL_J1033.1+4115_daily_bin1347.fits sctable="SC_DATA" expcube=/scratch/kocevski/979139/ltcube_588470401_588729601_4FGL_J1033.1+4115_daily_bin1347.fits outfile=/scratch/kocevski/979139/expmap_588470401_588729601_4FGL_J1033.1+4115_daily_bin1347.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/979139/ltcube_588470401_588729601_4FGL_J1033.1+4115_daily_bin1347.fits
.....................!
real 193.02
user 187.90
sys 4.13

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1033.1+4115 @ 158.275 41.262

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/979139/ft1_filtered_4FGL_J1033.1+4115_daily_bin1347.fits scfile=/scratch/kocevski/979139/ft2_4FGL_J1033.1+4115_daily_bin1347.fits outfile=/scratch/kocevski/979139/cmap_588470401_588729601_4FGL_J1033.1+4115_daily_bin1347.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=158.275 yref=41.262 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/979139/ft1_filtered_4FGL_J1033.1+4115_daily_bin1347.fits scfile=/scratch/kocevski/979139/ft2_4FGL_J1033.1+4115_daily_bin1347.fits outfile=/scratch/kocevski/979139/cmap_HighResolution_588470401_588729601_4FGL_J1033.1+4115_daily_bin1347.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=158.275 yref=41.262 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/979139/ft1_filtered_4FGL_J1033.1+4115_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/979139/ft2_4FGL_J1033.1+4115_daily_bin1347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/979139/Model_4FGL_J1033.1+4115_daily_bin1347.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/979139/ft1_filtered_4FGL_J1033.1+4115_daily_bin1347.fits.....................!
real 49.64
user 48.04
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/979139/ft1_filtered_4FGL_J1033.1+4115_daily_bin1347.fits', '/scratch/kocevski/979139/ft2_4FGL_J1033.1+4115_daily_bin1347.fits', expMap='/scratch/kocevski/979139/expmap_588470401_588729601_4FGL_J1033.1+4115_daily_bin1347.fits', expCube='/scratch/kocevski/979139/ltcube_588470401_588729601_4FGL_J1033.1+4115_daily_bin1347.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/979139/Model_4FGL_J1033.1+4115_daily_bin1347.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1033.1+4115'

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.495e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/979139/ft1_filtered_4FGL_J1033.1+4115_daily_bin1347.fits
Spacecraft file(s): /scratch/kocevski/979139/ft2_4FGL_J1033.1+4115_daily_bin1347.fits
Exposure map: /scratch/kocevski/979139/expmap_588470401_588729601_4FGL_J1033.1+4115_daily_bin1347.fits
Exposure cube: /scratch/kocevski/979139/ltcube_588470401_588729601_4FGL_J1033.1+4115_daily_bin1347.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/979139/Model_4FGL_J1033.1+4115_daily_bin1347.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) = 5485.72339982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.943       1.0000         .10000E-03   10000.    
     5 'norm      '    .48803E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1046       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .74817E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.5941       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1537       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1023       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33743E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.945       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0902       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.635       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.4640       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0177       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94505       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+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=   5485.694     FROM MIGRAD    STATUS=CONVERGED   1301 CALLS     4820 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7703        .15796E-02** at limit **
   2  Prefactor     .10000E-03    8.1556        .18142E-02** at limit **
   3  Prefactor     .10000E-03    31.105        .18142E-02** at limit **
   4  Prefactor     15.948        11.634        .10031E-03   -.24368E-04
   5  norm          .10005E-03    53.536        .40698E-02** at limit **
   6  Prefactor     3.1063        6.4521        .11507E-02    .46334E-03
   7  Prefactor     .70102E-01    41.382        .19645E-02    .17965E-03
   8  Prefactor     .10000E-03    16.369        .18142E-02** at limit **
   9  norm          3.5942        2.8776        .10769E-03    .38954E-04
  10  Prefactor     .10000E-03    4.6796        .30745E-03** at limit **
  11  norm          4.1537        8.5035        .98883E-03   -.51668E-04
  12  Prefactor     .10000E-03    74.469        .18142E-02** at limit **
  13  Prefactor     .10000E-03    12.506        .18142E-02** at limit **
  14  Prefactor     9.1004        5.4365        .12211E-03   -.16340E-03
  15  Prefactor     .10000E-03    2.8016        .12055E-02** at limit **
  16  Prefactor     .10000E-03    32.301        .12127    ** at limit **
  17  Prefactor     .10000E-03    32.842        .18142E-02** at limit **
  18  Prefactor     .10000E-03    10.461        .18142E-02** at limit **
  19  Prefactor     27.970        76.006        .75785E-04    .22502E-05
  20  norm          1.0901        .32640        .21717E-04   -.17955E-03
  21  Prefactor     25.639        16.638        .79119E-04   -.22559E-04
  22  Prefactor     .10000E-03    8.0013        .18142E-02** at limit **
  23  Prefactor     .10000E-03    21.673        .18142E-02** at limit **
  24  norm          .10000E-03    5.5931        .17088E-02** at limit **
  25  Prefactor     .10000E-03    1.8828        .15275E-02** at limit **
  26  Prefactor     .10000E-03    19.307        .18142E-02** at limit **
  27  norm          1.4639        2.0058        .12048E-03   -.51428E-04
  28  Normalizat    1.0172        .20434        .21759E-03   -.15226E-03
  29  Prefactor     .94547        .24519        .28742E-03   -.76578E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9481
  norm       = 0.000100052
  Prefactor  = 3.10625
  Prefactor  = 0.0701021
  Prefactor  = 0.0001
  norm       = 3.59416
  Prefactor  = 0.0001
  norm       = 4.15366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.10039
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.97
  norm       = 1.09013
  Prefactor  = 25.6388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46387
  Normalizat = 1.01722
  Prefactor  = 0.94547
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.694     FROM HESSE     STATUS=OK           539 CALLS     5359 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7704        .31593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.109        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.948        11.614        .40123E-05   -1.4909    
   5  norm          .10005E-03    54.769        .81395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1063        6.4425        .23014E-03   -1.5355    
   7  Prefactor     .70102E-01    41.633        .78580E-04   -1.5655    
   8  Prefactor     .10000E-03    16.370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5942        2.8768        .43077E-05   -1.5329    
  10  Prefactor     .10000E-03    4.6796        .61491E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1537        8.4986        .39553E-04   -1.5300    
  12  Prefactor     .10000E-03    74.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1004        5.4350        .48843E-05   -1.5105    
  15  Prefactor     .10000E-03    2.8019        .24111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.543        .12356       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.970        75.881        .30314E-05   -1.4650    
  20  norm          1.0901        .32639        .86869E-06   -1.5499    
  21  Prefactor     25.639        16.635        .31648E-05   -1.4695    
  22  Prefactor     .10000E-03    8.0020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.673        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.5935        .34177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.8874        .30551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.308        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.4639        2.0056        .48191E-05   -1.5466    
  28  Normalizat    1.0172        .20373        .43518E-04   -.92456    
  29  Prefactor     .94547        .24537        .11497E-04   -.94570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38579e-09
Minuit parameter uncertainties:
  1  1.72642e-06
  2  8.2886e-06
  3  2.84413e-05
  4  11.6158
  5  0.00338425
  6  6.44392
  7  3.4167
  8  2.57888e-05
  9  2.87686
  10  1.32803e-05
  11  8.50103
  12  0.000113273
  13  3.92429e-06
  14  5.43533
  15  5.32895e-06
  16  0.000494248
  17  1.54168e-06
  18  1.12334e-05
  19  76.1448
  20  0.326392
  21  16.6384
  22  7.20025e-06
  23  1.58549e-06
  24  7.1769e-06
  25  1.03943e-05
  26  3.51373e-06
  27  2.00565
  28  0.203884
  29  0.245655
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  9.100e+00  5.435e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  9.455e-01  2.457e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.017e+00  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.97
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.68e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.29e-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) = 5485.58277294
delta logL = 0.111700783775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5485.57859127
delta logL = 0.115882455209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1008       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1287       1.0000          .0000       10.000    
     3 'Normalizat'    1.0417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92748       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5485.579     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1040        9.3188        .33214E-02    .82813E-04
   2  Index         2.1288        .80080        .16899       -.99460E-06
   3  Normalizat    1.0417        .16726        .41150E-01    .28124E-05
   4  Prefactor     .92746        .20844        .65604E-01    .13460E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.10402
  Index      = 2.12879
  Normalizat = 1.0417
  Prefactor  = 0.927463
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.579     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1040        5.9671        .13286E-03   -1.5104    
   2  Index         2.1288        .59567        .83807E-02   -.61168    
   3  Normalizat    1.0417        .19629        .21537E-03   -.91646    
   4  Prefactor     .92746        .24427        .29017E-03   -.95188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0411e-13
Minuit parameter uncertainties:
  1  5.96752
  2  0.597788
  3  0.196425
  4  0.244563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/979139': 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) = 5485.57859112
delta logL = 0.115882606905

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  9.104e+00  5.968e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.129e+00  5.978e-01  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  9.275e-01  2.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.042e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.17
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.13 +/- 0.60
Photon Flux (Free Index): 4.85e-08 +/- 4.88e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.95e-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/979139/cmap_HighResolution_588470401_588729601_4FGL_J1033.1+4115_daily_bin1347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.68e-08', energy_flux2='2.50e-05', photon_flux_error='3.99e-08', dlogl='1.16e-01', energy_flux='2.16e-05', photon_flux2='4.85e-08', job_status='DONE', time_completed='2021-09-02 03:50:51.681982', photon_index_error2='0.60', photon_index2='2.13', ts='8.97', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='1.02', time_epoch_completed='1630579851.68', return_code='0', job_id='979139', GAL2='0.93', EG2='1.04', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='4.88e-08', ts2='9.17', photon_index='2.41' WHERE bin_id='1347' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:50:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 979139: <4FGL_J1033.1+4115_daily_bin1347> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1347> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 03:35:26 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:35:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 03:35:59 2021
Terminated at Thu Sep  2 03:50:52 2021
Results reported at Thu Sep  2 03:50:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1347 158.275 41.262 588470401 588729601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1033.1+4115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   864.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            926 sec.

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

