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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin687
RA = 158.275, Dec = 41.262
tmin = 417398401, tmax = 417657601
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='974767', job_status='RUN', time_executed='2021-09-02 03:23:26.153619', time_epoch_executed='1630578206.15' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974767/ft1_4FGL_J1033.1+4115_daily_bin687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974767/ft2_4FGL_J1033.1+4115_daily_bin687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974767/ft1_4FGL_J1033.1+4115_daily_bin687.fits outfile=/scratch/kocevski/974767/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin687.fits ra=158.275 dec=41.262 rad=12.0 tmin=417398401.0 tmax=417657601.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 7.14
user 5.33
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974767/ft2_4FGL_J1033.1+4115_daily_bin687.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/974767/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin687.fits evtable="EVENTS" outfile="/scratch/kocevski/974767/ft1_filtered_4FGL_J1033.1+4115_daily_bin687.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.68
user 0.36
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974767/ft1_filtered_4FGL_J1033.1+4115_daily_bin687.fits" evtable="EVENTS" scfile=/scratch/kocevski/974767/ft2_4FGL_J1033.1+4115_daily_bin687.fits sctable="SC_DATA" outfile=/scratch/kocevski/974767/ltcube_417398401_417657601_4FGL_J1033.1+4115_daily_bin687.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/974767/ft2_4FGL_J1033.1+4115_daily_bin687.fits
.....................!
real 16.35
user 15.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974767/ft1_filtered_4FGL_J1033.1+4115_daily_bin687.fits evtable="EVENTS" scfile=/scratch/kocevski/974767/ft2_4FGL_J1033.1+4115_daily_bin687.fits sctable="SC_DATA" expcube=/scratch/kocevski/974767/ltcube_417398401_417657601_4FGL_J1033.1+4115_daily_bin687.fits outfile=/scratch/kocevski/974767/expmap_417398401_417657601_4FGL_J1033.1+4115_daily_bin687.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/974767/ltcube_417398401_417657601_4FGL_J1033.1+4115_daily_bin687.fits
.....................!
real 196.62
user 186.28
sys 4.86

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/974767/ft1_filtered_4FGL_J1033.1+4115_daily_bin687.fits scfile=/scratch/kocevski/974767/ft2_4FGL_J1033.1+4115_daily_bin687.fits outfile=/scratch/kocevski/974767/cmap_417398401_417657601_4FGL_J1033.1+4115_daily_bin687.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.63
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974767/ft1_filtered_4FGL_J1033.1+4115_daily_bin687.fits scfile=/scratch/kocevski/974767/ft2_4FGL_J1033.1+4115_daily_bin687.fits outfile=/scratch/kocevski/974767/cmap_HighResolution_417398401_417657601_4FGL_J1033.1+4115_daily_bin687.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.64
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12558       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .71121       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6236       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.666       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8952       1.0000         .10000E-03   10000.    
    11 'norm      '    14.244       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8664       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7269       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    187.25       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6045       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8815       1.0000         .10000E-03   10000.    
    24 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5759       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .24248E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .67236       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .66377       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0801       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=   4797.377     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3686 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.7826        .37405E-07** at limit **
   2  Prefactor     .10000E-03    18.375        .23942E-06** at limit **
   3  Prefactor     31.293        36.140        .89643E-06    .33728E-04
   4  Prefactor     .10000E-03    7.2115       -.12873E-06** at limit **
   5  norm          .19555        12.109        .36725E-05   -.84885E-03
   6  Prefactor     .70889        9.2042        .52316E-05    .10464E-03
   7  Prefactor     8.6250        5.5784        .10651E-06   -.10527E-03
   8  Prefactor     .10000E-03    24.885       -.12549E-06** at limit **
   9  norm          15.665        4.8255       -.13410E-06   -.73005E-03
  10  Prefactor     8.8965        6.8832        .12564E-06   -.68590E-04
  11  norm          14.246        14.502        .81260E-08   -.34820E-04
  12  Prefactor     .10000E-03    38.827        .33314E-06** at limit **
  13  Prefactor     .10000E-03    34.182       -.65042E-06** at limit **
  14  Prefactor     2.8671        4.9450        .64859E-06    .14018E-03
  15  Prefactor     5.7279        5.7519       -.10804E-07   -.51693E-04
  16  Prefactor     .10000E-03    23.405        .14172E-06** at limit **
  17  Prefactor     .10000E-03    22.978        .16666E-06** at limit **
  18  Prefactor     .10000E-03    7.3300       -.91925E-07** at limit **
  19  Prefactor     187.32        128.69        .22626E-05    .18817E-03
  20  norm          2.6046        .48265        .96116E-10   -.37704E-03
  21  Prefactor     .10000E-03    8.3440       -.46177E-07** at limit **
  22  Prefactor     .10000E-03    14.079        .36298E-07** at limit **
  23  Prefactor     2.8882        345.00        .33909E-05    .10092E-04
  24  norm          .10000E-03    16.284       -.39584E-06** at limit **
  25  Prefactor     3.5770        5.1525       -.28566E-06   -.12786E-03
  26  Prefactor     .10000E-03    164.68        .50351E-06** at limit **
  27  norm          .67190        3.9279        .27927E-05    .46590E-03
  28  Normalizat    .66366        .19151       -.21405E-05   -.29909E-03
  29  Prefactor     1.0800        .22037        .50944E-06   -.26766E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.2934
  Prefactor  = 0.0001
  norm       = 0.195551
  Prefactor  = 0.708891
  Prefactor  = 8.62503
  Prefactor  = 0.0001
  norm       = 15.6652
  Prefactor  = 8.89651
  norm       = 14.2465
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 2.86714
  Prefactor  = 5.72791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 187.324
  norm       = 2.60459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88819
  norm       = 0.0001
  Prefactor  = 3.57696
  Prefactor  = 0.000100001
  norm       = 0.6719
  Normalizat = 0.663662
  Prefactor  = 1.08003
 **********
 **   18 **HESSE 
 **********

 FCN=   4797.377     FROM HESSE     STATUS=OK           551 CALLS     4237 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7841        .16267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.293        36.293        .71632E-04   -1.4589    
   4  Prefactor     .10000E-03    7.2587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .19555        174.83        .39893E-02   -1.5620    
   6  Prefactor     .70889        9.4188        .39102E-03   -1.5540    
   7  Prefactor     8.6250        5.5772        .11428E-03   -1.5121    
   8  Prefactor     .10000E-03    24.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.665        4.8215        .80456E-04   -1.4916    
  10  Prefactor     8.8965        6.8714        .13439E-03   -1.5111    
  11  norm          14.246        14.469        .10613E-03   -1.4953    
  12  Prefactor     .10000E-03    38.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8671        4.9084        .18553E-03   -1.5369    
  15  Prefactor     5.7279        5.7342        .15720E-03   -1.5229    
  16  Prefactor     .10000E-03    23.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.3318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     187.32        130.08        .14754E-03   -1.2962    
  20  norm          2.6046        .48302        .19912E-04   -1.5385    
  21  Prefactor     .10000E-03    8.3573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.8882        346.43        .23943E-03   -1.5368    
  24  norm          .10000E-03    16.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.5770        4.9579        .16116E-03   -1.5330    
  26  Prefactor     .10000E-03    164.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .67190        3.7836        .24190E-03   -1.5544    
  28  Normalizat    .66366        .22545        .27111E-03   -1.0535    
  29  Prefactor     1.0800        .26102        .27205E-03   -.90107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73929e-08
Minuit parameter uncertainties:
  1  1.79331e-06
  2  5.59342e-05
  3  36.3187
  4  7.68253e-06
  5  11.7258
  6  5.16858
  7  5.57753
  8  6.91601e-05
  9  4.82163
  10  6.87201
  11  14.473
  12  0.000292222
  13  0.000353698
  14  4.90913
  15  5.73477
  16  5.17307e-05
  17  8.38787e-05
  18  1.66305e-05
  19  130.281
  20  0.483017
  21  3.44531e-06
  22  2.19424e-05
  23  63.6428
  24  9.911e-05
  25  4.95851
  26  0.000961527
  27  3.18894
  28  0.225761
  29  0.261324
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.867e+00  4.909e+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:  1.080e+00  2.613e-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:  6.637e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974767/likelihoodResults_417398401_417657601_4FGL_J1033.1+4115_daily_bin687.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): 0
logL (Free Index) = 4797.28498424
delta logL = 0.0915811482519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4797.27734804
delta logL = 0.099217343768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4144       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9412       1.0000          .0000       10.000    
     3 'Normalizat'    .64622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0933       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=   4797.277     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4131        92.186        .65862E-02    .47260E-03
   2  Index         2.9441        6.4373        .22245        .46921E-04
   3  Normalizat    .64639        .49033E-01    .62025E-01    .14249E-04
   4  Prefactor     1.0929        .59392E-01    .61190E-01    .47272E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41307
  Index      = 2.9441
  Normalizat = 0.646386
  Prefactor  = 1.09286
 **********
 **   18 **HESSE 
 **********

 FCN=   4797.277     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4131        4.5888        .13826E-03   -1.5397    
   2  Index         2.9441        1.3289        .94352E-02   -.42375    
   3  Normalizat    .64639        .21077        .27441E-03   -1.0605    
   4  Prefactor     1.0929        .25987        .27061E-03   -.89695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35832e-09
Minuit parameter uncertainties:
  1  4.58943
  2  1.34846
  3  0.211032
  4  0.260168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974767': 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) = 4797.27734106
delta logL = 0.0992243235605

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.413e+00  4.589e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.944e+00  1.348e+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.093e+00  2.602e-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:  6.464e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
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/974767/cmap_HighResolution_417398401_417657601_4FGL_J1033.1+4115_daily_bin687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.18e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-02 03:36:52.545317', job_id='974767', GAL2='1.09', fit_tolerance='1e-08', EG2='0.65', EG='0.66', time_epoch_completed='1630579012.55', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.92e-02', ts2='0.67', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='687' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:36:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 974767: <4FGL_J1033.1+4115_daily_bin687> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin687> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 03:20:32 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:20:46 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:20:46 2021
Terminated at Thu Sep  2 03:36:53 2021
Results reported at Thu Sep  2 03:36:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin687 158.275 41.262 417398401 417657601 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 :                                   790.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            981 sec.

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

