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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin731
RA = 158.275, Dec = 41.262
tmin = 428803201, tmax = 429062401
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='974829', job_status='RUN', time_executed='2021-09-02 03:23:53.683696', time_epoch_executed='1630578233.68' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974829/ft1_4FGL_J1033.1+4115_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974829/ft2_4FGL_J1033.1+4115_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974829/ft1_4FGL_J1033.1+4115_daily_bin731.fits outfile=/scratch/kocevski/974829/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin731.fits ra=158.275 dec=41.262 rad=12.0 tmin=428803201.0 tmax=429062401.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.07
user 6.36
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974829/ft1_filtered_4FGL_J1033.1+4115_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/974829/ft2_4FGL_J1033.1+4115_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/974829/ltcube_428803201_429062401_4FGL_J1033.1+4115_daily_bin731.fits outfile=/scratch/kocevski/974829/expmap_428803201_429062401_4FGL_J1033.1+4115_daily_bin731.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/974829/ltcube_428803201_429062401_4FGL_J1033.1+4115_daily_bin731.fits
.....................!
real 192.10
user 186.71
sys 4.91

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/974829/ft1_filtered_4FGL_J1033.1+4115_daily_bin731.fits scfile=/scratch/kocevski/974829/ft2_4FGL_J1033.1+4115_daily_bin731.fits outfile=/scratch/kocevski/974829/cmap_428803201_429062401_4FGL_J1033.1+4115_daily_bin731.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.71
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974829/ft1_filtered_4FGL_J1033.1+4115_daily_bin731.fits scfile=/scratch/kocevski/974829/ft2_4FGL_J1033.1+4115_daily_bin731.fits outfile=/scratch/kocevski/974829/cmap_HighResolution_428803201_429062401_4FGL_J1033.1+4115_daily_bin731.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.80
user 0.44
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.477       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.876       1.0000         .10000E-03   10000.    
     5 'norm      '    8.8626       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2740       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.261       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3767       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .28769E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.866       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.605       1.0000         .10000E-03   10000.    
    17 'Prefactor '    100.68       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.829       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .80646       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6652       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    109.62       1.0000         .10000E-03   10000.    
    24 'norm      '    4.7371       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.925       1.0000         .10000E-03   10000.    
    26 'Prefactor '    121.06       1.0000         .10000E-03   10000.    
    27 'norm      '    .11927E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .62193       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2449       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=   4565.889     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3699 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.747        .75317E-06** at limit **
   2  Prefactor     29.463        27.430       -.54871E-06   -.19735E-04
   3  Prefactor     .10000E-03    15.552        .32372E-06** at limit **
   4  Prefactor     10.875        7.4871       -.10994E-07    .43747E-05
   5  norm          8.8606        12.891       -.81483E-07   -.47993E-05
   6  Prefactor     5.2728        6.0388       -.23692E-06   -.37854E-04
   7  Prefactor     .10000E-03    .98380        .97801E-07** at limit **
   8  Prefactor     34.282        39.899        .14894E-05    .10712E-03
   9  norm          3.3765        3.0417       -.52661E-07   -.54757E-04
  10  Prefactor     .10000E-03    1.7196        .16401E-06** at limit **
  11  norm          .10001E-03    53.736       -.38025E-05** at limit **
  12  Prefactor     .10000E-03    36.330        .62444E-06** at limit **
  13  Prefactor     .10000E-03    10.812        .93586E-07** at limit **
  14  Prefactor     17.867        6.8496        .18824E-07    .28510E-03
  15  Prefactor     .10000E-03    1.8526        .88928E-07** at limit **
  16  Prefactor     12.613        31.969        .68726E-06    .22682E-04
  17  Prefactor     100.74        90.643        .11572E-05    .15685E-04
  18  Prefactor     11.827        24.096       -.18619E-06   -.11248E-04
  19  Prefactor     .10000E-03    35.288        .81739E-06** at limit **
  20  norm          .80649        .29499        .13833E-07    .10530E-03
  21  Prefactor     8.6630        23.250       -.33072E-05   -.52924E-04
  22  Prefactor     .10000E-03    4.8733        .11013E-06** at limit **
  23  Prefactor     109.62        123.71       -.75583E-07   -.20527E-05
  24  norm          4.7565        36.495        .51332E-05    .58841E-04
  25  Prefactor     12.928        6.8806       -.24841E-06    .31989E-03
  26  Prefactor     121.13        97.462        .26784E-06    .11801E-03
  27  norm          .10001E-03    3.5112       -.35575E-06** at limit **
  28  Normalizat    .62219        .20115        .20012E-05    .39488E-04
  29  Prefactor     1.2446        .24884       -.23164E-05    .13243E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 29.4635
  Prefactor  = 0.0001
  Prefactor  = 10.8751
  norm       = 8.86063
  Prefactor  = 5.27283
  Prefactor  = 0.0001
  Prefactor  = 34.2824
  norm       = 3.37651
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8674
  Prefactor  = 0.0001
  Prefactor  = 12.6133
  Prefactor  = 100.736
  Prefactor  = 11.827
  Prefactor  = 0.0001
  norm       = 0.806491
  Prefactor  = 8.66305
  Prefactor  = 0.0001
  Prefactor  = 109.619
  norm       = 4.75652
  Prefactor  = 12.9284
  Prefactor  = 121.127
  norm       = 0.000100009
  Normalizat = 0.622194
  Prefactor  = 1.24464
 **********
 **   18 **HESSE 
 **********

 FCN=   4565.889     FROM HESSE     STATUS=OK           555 CALLS     4254 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.463        27.468        .73794E-04   -1.4622    
   3  Prefactor     .10000E-03    15.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.875        7.4922        .12149E-03   -1.5048    
   5  norm          8.8606        12.882        .13464E-03   -1.5113    
   6  Prefactor     5.2728        6.0266        .16578E-03   -1.5249    
   7  Prefactor     .10000E-03    .99025        .65420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.282        39.802        .68462E-04   -1.4536    
   9  norm          3.3765        3.0329        .10674E-03   -1.5340    
  10  Prefactor     .10000E-03    1.7370        .86471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    55.406        .38373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.867        6.8027        .94756E-04   -1.4862    
  15  Prefactor     .10000E-03    1.8600        .89798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.613        31.930        .11282E-03   -1.4998    
  17  Prefactor     100.74        90.623        .20033E-03   -1.3697    
  18  Prefactor     11.827        24.113        .11647E-03   -1.5020    
  19  Prefactor     .10000E-03    35.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .80649        .29613        .21230E-04   -1.5528    
  21  Prefactor     8.6630        23.181        .13617E-03   -1.5119    
  22  Prefactor     .10000E-03    4.8753        .14570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     109.62        123.75        .38416E-04   -1.3610    
  24  norm          4.7565        36.305        .18487E-03   -1.5272    
  25  Prefactor     12.928        6.8928        .10584E-03   -1.4989    
  26  Prefactor     121.13        98.460        .18289E-03   -1.3502    
  27  norm          .10001E-03    8.2482        .20270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .62219        .22753        .26702E-03   -1.0705    
  29  Prefactor     1.2446        .27927        .25705E-03   -.84968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5012e-09
Minuit parameter uncertainties:
  1  4.26782e-05
  2  27.4795
  3  2.1744e-05
  4  7.49288
  5  12.8859
  6  6.0273
  7  5.54565e-07
  8  39.8323
  9  3.03302
  10  1.63127e-06
  11  0.00115539
  12  4.61391e-05
  13  2.57154e-06
  14  6.80298
  15  1.17284e-06
  16  31.9733
  17  90.7483
  18  24.1332
  19  4.83175e-05
  20  0.296135
  21  23.2051
  22  6.0749e-06
  23  124.048
  24  26.3041
  25  6.89327
  26  98.5932
  27  0.000551702
  28  0.227873
  29  0.2796
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.787e+01  6.803e+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.245e+00  2.796e-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.222e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.01
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 4.99e-08
Energy Flux (Fixed Index): 4.23e-05 +/- 1.61e-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) = 4565.77094275
delta logL = 0.118249715324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4565.76890815
delta logL = 0.120284323352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.938       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2285       1.0000          .0000       10.000    
     3 'Normalizat'    .64380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2237       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=   4565.769     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      262 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.930        132.18        .22425E-02    .52568E-03
   2  Index         2.2280        6.1121        .11394        .41510E-04
   3  Normalizat    .64374        .25352        .59429E-01    .17736E-04
   4  Prefactor     1.2238        .28066        .58530E-01    .24053E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9303
  Index      = 2.22799
  Normalizat = 0.643737
  Prefactor  = 1.2238
 **********
 **   18 **HESSE 
 **********

 FCN=   4565.769     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.930        8.2200        .44850E-03   -1.4815    
   2  Index         2.2280        .36687        .46733E-02   -.58764    
   3  Normalizat    .64374        .21213        .26288E-03   -1.0616    
   4  Prefactor     1.2238        .27573        .25882E-03   -.85602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39965e-10
Minuit parameter uncertainties:
  1  8.22045
  2  0.36735
  3  0.212404
  4  0.276053
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974829': 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) = 4565.7689056
delta logL = 0.120286872719

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.993e+01  8.220e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.228e+00  3.674e-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.224e+00  2.761e-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.437e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.11
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.23 +/- 0.37
Photon Flux (Free Index): 1.18e-07 +/- 5.19e-08
Energy Flux (Free Index): 5.04e-05 +/- 2.82e-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/974829/cmap_HighResolution_428803201_429062401_4FGL_J1033.1+4115_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='5.04e-05', photon_flux_error='4.99e-08', dlogl='1.20e-01', energy_flux='4.23e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-02 03:35:49.336418', photon_index_error2='0.37', photon_index2='2.23', ts='17.01', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='2.82e-05', EG='0.62', time_epoch_completed='1630578949.34', return_code='0', job_id='974829', GAL2='1.22', EG2='0.64', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='5.19e-08', ts2='17.11', photon_index='2.41' WHERE bin_id='731' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:35:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 974829: <4FGL_J1033.1+4115_daily_bin731> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin731 158.275 41.262 428803201 429062401 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 :                                   705.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             244.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            914 sec.

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

