/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 15 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 = 7426
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1033.1+4115_daily_bin508
RA = 158.275, Dec = 41.262
tmin = 371001601, tmax = 371260801
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='973374', job_status='RUN', time_executed='2021-09-02 03:16:37.122204', time_epoch_executed='1630577797.12' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973374

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973374/ft1_4FGL_J1033.1+4115_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973374/ft2_4FGL_J1033.1+4115_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973374/ft1_4FGL_J1033.1+4115_daily_bin508.fits outfile=/scratch/kocevski/973374/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin508.fits ra=158.275 dec=41.262 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.84
user 6.21
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/973374/ft2_4FGL_J1033.1+4115_daily_bin508.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/973374/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/973374/ft1_filtered_4FGL_J1033.1+4115_daily_bin508.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.59
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/973374/ft1_filtered_4FGL_J1033.1+4115_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/973374/ft2_4FGL_J1033.1+4115_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/973374/ltcube_371001601_371260801_4FGL_J1033.1+4115_daily_bin508.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/973374/ft2_4FGL_J1033.1+4115_daily_bin508.fits
.....................!
real 16.57
user 15.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973374/ft1_filtered_4FGL_J1033.1+4115_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/973374/ft2_4FGL_J1033.1+4115_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/973374/ltcube_371001601_371260801_4FGL_J1033.1+4115_daily_bin508.fits outfile=/scratch/kocevski/973374/expmap_371001601_371260801_4FGL_J1033.1+4115_daily_bin508.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/973374/ltcube_371001601_371260801_4FGL_J1033.1+4115_daily_bin508.fits
.....................!
real 192.76
user 186.28
sys 4.38

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/973374/ft1_filtered_4FGL_J1033.1+4115_daily_bin508.fits scfile=/scratch/kocevski/973374/ft2_4FGL_J1033.1+4115_daily_bin508.fits outfile=/scratch/kocevski/973374/cmap_371001601_371260801_4FGL_J1033.1+4115_daily_bin508.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973374/ft1_filtered_4FGL_J1033.1+4115_daily_bin508.fits scfile=/scratch/kocevski/973374/ft2_4FGL_J1033.1+4115_daily_bin508.fits outfile=/scratch/kocevski/973374/cmap_HighResolution_371001601_371260801_4FGL_J1033.1+4115_daily_bin508.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.57
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/973374/ft1_filtered_4FGL_J1033.1+4115_daily_bin508.fits', '/scratch/kocevski/973374/ft2_4FGL_J1033.1+4115_daily_bin508.fits', expMap='/scratch/kocevski/973374/expmap_371001601_371260801_4FGL_J1033.1+4115_daily_bin508.fits', expCube='/scratch/kocevski/973374/ltcube_371001601_371260801_4FGL_J1033.1+4115_daily_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/973374/Model_4FGL_J1033.1+4115_daily_bin508.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/973374/ft1_filtered_4FGL_J1033.1+4115_daily_bin508.fits
Spacecraft file(s): /scratch/kocevski/973374/ft2_4FGL_J1033.1+4115_daily_bin508.fits
Exposure map: /scratch/kocevski/973374/expmap_371001601_371260801_4FGL_J1033.1+4115_daily_bin508.fits
Exposure cube: /scratch/kocevski/973374/ltcube_371001601_371260801_4FGL_J1033.1+4115_daily_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/973374/Model_4FGL_J1033.1+4115_daily_bin508.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) = 5751.34747307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9522       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8714       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.292       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0231       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10421E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2336       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9365       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14149E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5427       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.526       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.245       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9026       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .29423E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0348       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98047       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=   5751.203     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3685 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9547        12.929        .33490E-02    .13833E-03
   2  Prefactor     .10001E-03    16.772        .90712E-02** at limit **
   3  Prefactor     .10001E-03    11.540        .90712E-02** at limit **
   4  Prefactor     .10000E-03    5.4953        .90712E-02** at limit **
   5  norm          .10000E-03    12.164        .90712E-02** at limit **
   6  Prefactor     5.8704        6.2090        .41434E-02    .21214E-02
   7  Prefactor     .10000E-03    3.5326        .90712E-02** at limit **
   8  Prefactor     29.272        36.333        .18507E-02   -.34080E-03
   9  norm          2.0231        3.2532        .72732E-02    .53767E-03
  10  Prefactor     .10000E-03    2.5417        .90712E-02** at limit **
  11  norm          .10001E-03    11.161        .90712E-02** at limit **
  12  Prefactor     .10000E-03    27.401        .90712E-02** at limit **
  13  Prefactor     .10000E-03    11.448        .90712E-02** at limit **
  14  Prefactor     9.2325        5.1510        .32973E-02    .28477E-03
  15  Prefactor     2.9369        3.2319        .59258E-02    .17642E-04
  16  Prefactor     .10000E-03    15.048        .90712E-02** at limit **
  17  Prefactor     .10000E-03    43.168        .90712E-02** at limit **
  18  Prefactor     .10000E-03    16.294        .90712E-02** at limit **
  19  Prefactor     .10127E-03    308.06        .90712E-02** at limit **
  20  norm          1.5428        .36718        .48390E-02   -.80899E-04
  21  Prefactor     17.530        15.444        .23917E-02    .37817E-04
  22  Prefactor     .10000E-03    7.7501        .90712E-02** at limit **
  23  Prefactor     .10000E-03    74.102        .90712E-02** at limit **
  24  norm          10.247        16.505        .31295E-02    .43669E-04
  25  Prefactor     2.9051        3.0478        .59625E-02    .24652E-03
  26  Prefactor     .10428E-03    36.327        .15287    ** at limit **
  27  norm          .10000E-03    .79693        .90712E-02** at limit **
  28  Normalizat    1.0349        .16910        .41717E-01    .52080E-05
  29  Prefactor     .98043        .20636        .66181E-01    .79060E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.95472
  Prefactor  = 0.000100006
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 5.87044
  Prefactor  = 0.0001
  Prefactor  = 29.2723
  norm       = 2.02314
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.23252
  Prefactor  = 2.93688
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000101267
  norm       = 1.54275
  Prefactor  = 17.5297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2474
  Prefactor  = 2.90507
  Prefactor  = 0.000104276
  norm       = 0.0001
  Normalizat = 1.03491
  Prefactor  = 0.980429
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.203     FROM HESSE     STATUS=OK           549 CALLS     4234 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9547        12.920        .13396E-03   -1.5109    
   2  Prefactor     .10001E-03    16.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    11.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5504        .17360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8704        6.1991        .16573E-03   -1.5223    
   7  Prefactor     .10000E-03    3.6936        .27794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.272        36.404        .74026E-04   -1.4625    
   9  norm          2.0231        3.2272        .16287E-03   -1.5423    
  10  Prefactor     .10000E-03    2.5800        .11797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    11.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2325        5.1574        .12100E-03   -1.5100    
  15  Prefactor     2.9369        3.2297        .13883E-03   -1.5365    
  16  Prefactor     .10000E-03    15.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10127E-03    309.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5428        .36799        .21360E-04   -1.5460    
  21  Prefactor     17.530        15.441        .95669E-04   -1.4870    
  22  Prefactor     .10000E-03    7.7772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    74.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.247        16.465        .12518E-03   -1.5068    
  25  Prefactor     2.9051        2.8735        .12292E-03   -1.5367    
  26  Prefactor     .10428E-03    315.86        .83772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .79972        .66079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0349        .19929        .22702E-03   -.91870    
  29  Prefactor     .98043        .24229        .29271E-03   -.93385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13017e-08
Minuit parameter uncertainties:
  1  12.9237
  2  0.000611268
  3  0.000597511
  4  2.16586e-06
  5  0.000376578
  6  6.19973
  7  6.90459e-08
  8  36.4319
  9  3.22749
  10  8.98134e-07
  11  0.000495172
  12  0.000105579
  13  0.000183618
  14  5.15769
  15  3.22989
  16  0.000192391
  17  0.000142463
  18  0.000477426
  19  0.039847
  20  0.367987
  21  15.4447
  22  3.79216e-06
  23  3.70085e-05
  24  16.4721
  25  2.87363
  26  0.0738911
  27  5.53714e-08
  28  0.199433
  29  0.242556
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  9.233e+00  5.158e+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.804e-01  2.426e-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.035e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.95
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.78e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 2.19e-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) = 5750.8621383
delta logL = 0.340602168326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5750.84884745
delta logL = 0.353893020213

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9194       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8993       1.0000          .0000       10.000    
     3 'Normalizat'    .99810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0106       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=   5750.849     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      265 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9186        5.3854        .91847E-04    .16666E-02
   2  Index         2.8997        .63844        .53473E-02    .26575E-03
   3  Normalizat    .99815        .19829        .23047E-03   -.35335E-03
   4  Prefactor     1.0107        .24446        .28878E-03   -.35935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.91862
  Index      = 2.89972
  Normalizat = 0.998155
  Prefactor  = 1.01067
 **********
 **   18 **HESSE 
 **********

 FCN=   5750.849     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9186        5.0386        .36739E-05   -1.5182    
   2  Index         2.8997        .59691        .21389E-03   -.43351    
   3  Normalizat    .99815        .19819        .46093E-04   -.93092    
   4  Prefactor     1.0107        .24442        .57757E-04   -.92375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.36904e-10
Minuit parameter uncertainties:
  1  5.03891
  2  0.598641
  3  0.198334
  4  0.244688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973374': 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) = 5750.84884626
delta logL = 0.353894215447

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  6.919e+00  5.039e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.900e+00  5.986e-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:  1.011e+00  2.447e-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:  9.982e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.71
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.90 +/- 0.60
Photon Flux (Free Index): 9.66e-08 +/- 5.51e-08
Energy Flux (Free Index): 2.03e-05 +/- 9.97e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/973374/cmap_HighResolution_371001601_371260801_4FGL_J1033.1+4115_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.78e-08', energy_flux2='2.03e-05', photon_flux_error='3.79e-08', dlogl='3.54e-01', energy_flux='2.19e-05', photon_flux2='9.66e-08', job_status='DONE', time_completed='2021-09-02 03:29:52.874507', photon_index_error2='0.60', photon_index2='2.90', ts='7.95', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='9.97e-06', EG='1.03', time_epoch_completed='1630578592.87', return_code='0', job_id='973374', GAL2='1.01', EG2='1.00', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='5.51e-08', ts2='8.71', photon_index='2.41' WHERE bin_id='508' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:29:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 973374: <4FGL_J1033.1+4115_daily_bin508> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin508> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 03:15:57 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:16:08 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:16:08 2021
Terminated at Thu Sep  2 03:29:53 2021
Results reported at Thu Sep  2 03:29:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin508 158.275 41.262 371001601 371260801 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 :                                   783.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            836 sec.

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

