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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin451
RA = 158.275, Dec = 41.262
tmin = 356227201, tmax = 356486401
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='973281', job_status='RUN', time_executed='2021-09-02 03:19:16.706964', time_epoch_executed='1630577956.71' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973281

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973281/ft1_4FGL_J1033.1+4115_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/973281/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/973281/ft2_4FGL_J1033.1+4115_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973281/ft1_4FGL_J1033.1+4115_daily_bin451.fits outfile=/scratch/kocevski/973281/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin451.fits ra=158.275 dec=41.262 rad=12.0 tmin=356227201.0 tmax=356486401.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.09
user 2.86
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/973281/ft2_4FGL_J1033.1+4115_daily_bin451.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/973281/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/973281/ft1_filtered_4FGL_J1033.1+4115_daily_bin451.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.47
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/973281/ft1_filtered_4FGL_J1033.1+4115_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/973281/ft2_4FGL_J1033.1+4115_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/973281/ltcube_356227201_356486401_4FGL_J1033.1+4115_daily_bin451.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/973281/ft2_4FGL_J1033.1+4115_daily_bin451.fits
.....................!
real 3.28
user 2.95
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973281/ft1_filtered_4FGL_J1033.1+4115_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/973281/ft2_4FGL_J1033.1+4115_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/973281/ltcube_356227201_356486401_4FGL_J1033.1+4115_daily_bin451.fits outfile=/scratch/kocevski/973281/expmap_356227201_356486401_4FGL_J1033.1+4115_daily_bin451.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/973281/ltcube_356227201_356486401_4FGL_J1033.1+4115_daily_bin451.fits
.....................!
real 192.79
user 187.39
sys 4.76

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/973281/ft1_filtered_4FGL_J1033.1+4115_daily_bin451.fits scfile=/scratch/kocevski/973281/ft2_4FGL_J1033.1+4115_daily_bin451.fits outfile=/scratch/kocevski/973281/cmap_356227201_356486401_4FGL_J1033.1+4115_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.53
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973281/ft1_filtered_4FGL_J1033.1+4115_daily_bin451.fits scfile=/scratch/kocevski/973281/ft2_4FGL_J1033.1+4115_daily_bin451.fits outfile=/scratch/kocevski/973281/cmap_HighResolution_356227201_356486401_4FGL_J1033.1+4115_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10921E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5284       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.523       1.0000         .10000E-03   10000.    
     9 'norm      '    4.1648       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    36.886       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28675E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.279       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9334       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14090E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    218.09       1.0000         .10000E-03   10000.    
    24 'norm      '    42.192       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11459E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .32675       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3690       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.

 FCN=   1118.452     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3654 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.868       -.19752E-05** at limit **
   2  Prefactor     .10000E-03    19.662        .39233E-05** at limit **
   3  Prefactor     .10000E-03    35.501        .49461E-05** at limit **
   4  Prefactor     .10008E-03    137.23        .17343E-03** at limit **
   5  norm          .10000E-03    11.530        .14768E-06** at limit **
   6  Prefactor     7.5306        13.674       -.66070E-06   -.18856E-04
   7  Prefactor     .10000E-03    6.2826       -.39560E-06** at limit **
   8  Prefactor     47.524        81.474        .27430E-05   -.63184E-04
   9  norm          4.1649        5.5169       -.22685E-05    .23998E-04
  10  Prefactor     .10000E-03    5.2284       -.23093E-06** at limit **
  11  norm          36.874        32.516        .35131E-06   -.16706E-03
  12  Prefactor     .10000E-03    51.123       -.26349E-04** at limit **
  13  Prefactor     .10000E-03    32.918       -.29477E-04** at limit **
  14  Prefactor     .10023E-03    9.0151        .83300E-06** at limit **
  15  Prefactor     .10000E-03    6.0249       -.13451E-06** at limit **
  16  Prefactor     .10000E-03    45.214        .13764E-04** at limit **
  17  Prefactor     .10001E-03    455.80       -.38918E-03** at limit **
  18  Prefactor     24.294        46.312        .42488E-05    .19109E-04
  19  Prefactor     .10000E-03    84.131       -.51071E-04** at limit **
  20  norm          1.9334        .81327       -.41661E-07    .52345E-03
  21  Prefactor     .10000E-03    87.362       -.33491E-04** at limit **
  22  Prefactor     .10000E-03    37.247        .20253E-04** at limit **
  23  Prefactor     217.91        232.22       -.11557E-03    .29712E-04
  24  norm          42.198        40.620       -.58847E-06    .11234E-03
  25  Prefactor     .10000E-03    8.9633       -.61926E-07** at limit **
  26  Prefactor     .10000E-03    44.360        .18449E-04** at limit **
  27  norm          .10000E-03    1.8394        .35553E-08** at limit **
  28  Normalizat    .32661        .34092       -.30840E-06   -.27037E-03
  29  Prefactor     1.3691        .45116        .58630E-05   -.40027E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100077
  norm       = 0.0001
  Prefactor  = 7.53064
  Prefactor  = 0.000100001
  Prefactor  = 47.5243
  norm       = 4.16489
  Prefactor  = 0.0001
  norm       = 36.8744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 24.2939
  Prefactor  = 0.0001
  norm       = 1.93336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 217.909
  norm       = 42.1979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.32661
  Prefactor  = 1.36905
 **********
 **   18 **HESSE 
 **********

 FCN=   1118.452     FROM HESSE     STATUS=OK           531 CALLS     4185 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.868        .13420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.667        .14490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10008E-03    138.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.536        .11094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5306        13.641        .14616E-03   -1.5159    
   7  Prefactor     .10000E-03    6.3416        .81826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     47.524        81.433        .58165E-04   -1.4328    
   9  norm          4.1649        5.5083        .87245E-04   -1.5300    
  10  Prefactor     .10000E-03    5.2584        .74670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.874        31.997        .65989E-04   -1.4493    
  12  Prefactor     .10000E-03    51.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10023E-03    52.664        .18804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.0493        .80173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    456.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.294        46.314        .81295E-04   -1.4722    
  19  Prefactor     .10000E-03    84.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9334        .81276        .18738E-04   -1.5430    
  21  Prefactor     .10000E-03    87.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     217.91        231.93        .13693E-03   -1.2745    
  24  norm          42.198        40.397        .61716E-04   -1.4408    
  25  Prefactor     .10000E-03    9.1741        .19492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    44.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.8397        .44303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .32661        .37228        .32111E-03   -1.2128    
  29  Prefactor     1.3691        .50330        .22477E-03   -.81276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.028e-09
Minuit parameter uncertainties:
  1  7.3308e-06
  2  1.61265e-05
  3  5.7778e-05
  4  0.00654346
  5  1.6676e-06
  6  13.6468
  7  0.000112683
  8  81.6248
  9  5.50902
  10  4.94689e-05
  11  32.0116
  12  3.3611e-05
  13  2.97695e-05
  14  0.0069785
  15  1.76892e-05
  16  5.49439e-05
  17  0.00340971
  18  46.3826
  19  3.21148e-05
  20  0.812762
  21  5.86432e-05
  22  2.09221e-05
  23  232.921
  24  40.423
  25  1.06542e-05
  26  2.73531e-06
  27  1.17091e-07
  28  0.37515
  29  0.505121
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.002e-04  6.979e-03  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:  1.369e+00  5.051e-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:  3.266e-01  3.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 1.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/973281/likelihoodResults_356227201_356486401_4FGL_J1033.1+4115_daily_bin451.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1118.45160118
delta logL = -9.04502326193e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1118.426093
delta logL = 0.0254177327076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49104       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4521       1.0000          .0000       10.000    
     3 'Normalizat'    .30852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3816       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=   1118.426     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      457 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49063        8.1667        .10380E-03   -.23702E-03
   2  Index         3.4524        3.7216        .11461E-01   -.23751E-04
   3  Normalizat    .30850        .36965        .33009E-03    .13397E-03
   4  Prefactor     1.3816        .50357        .22380E-03    .23668E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.490634
  Index      = 3.45236
  Normalizat = 0.308496
  Prefactor  = 1.38163
 **********
 **   18 **HESSE 
 **********

 FCN=   1118.426     FROM HESSE     STATUS=OK            25 CALLS      482 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49063        5.3373        .41519E-05   -1.5568    
   2  Index         3.4524        3.1589        .45845E-03   -.31470    
   3  Normalizat    .30850        .36983        .13204E-04   -1.2233    
   4  Prefactor     1.3816        .50376        .44761E-04   -.80911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98363e-10
Minuit parameter uncertainties:
  1  3.23648
  2  3.45508
  3  0.372811
  4  0.505567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973281': 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) = 1118.42609298
delta logL = 0.0254177465495

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  4.906e-01  3.236e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  3.452e+00  3.455e+00  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.382e+00  5.056e-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:  3.085e-01  3.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 158.275 41.262

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/973281/cmap_HighResolution_356227201_356486401_4FGL_J1033.1+4115_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', job_status='DONE', photon_flux_upper_limit='1.77e-07', time_completed='2021-09-02 03:26:34.079098', job_id='973281', GAL2='1.38', fit_tolerance='1e-08', EG2='0.31', EG='0.33', time_epoch_completed='1630578394.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='2.54e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='451' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:26:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 973281: <4FGL_J1033.1+4115_daily_bin451> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin451> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 03:15:50 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:15:55 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:15:55 2021
Terminated at Thu Sep  2 03:26:34 2021
Results reported at Thu Sep  2 03:26:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin451 158.275 41.262 356227201 356486401 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 :                                   429.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            644 sec.

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

