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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin511
RA = 158.275, Dec = 41.262
tmin = 371779201, tmax = 372038401
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='973379', job_status='RUN', time_executed='2021-09-02 03:16:21.099588', time_epoch_executed='1630577781.1' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973379/ft1_4FGL_J1033.1+4115_daily_bin511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973379/ft2_4FGL_J1033.1+4115_daily_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973379/ft1_4FGL_J1033.1+4115_daily_bin511.fits outfile=/scratch/kocevski/973379/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin511.fits ra=158.275 dec=41.262 rad=12.0 tmin=371779201.0 tmax=372038401.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.38
user 3.16
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/973379/ft2_4FGL_J1033.1+4115_daily_bin511.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/973379/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/973379/ft1_filtered_4FGL_J1033.1+4115_daily_bin511.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/973379/ft1_filtered_4FGL_J1033.1+4115_daily_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/973379/ft2_4FGL_J1033.1+4115_daily_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/973379/ltcube_371779201_372038401_4FGL_J1033.1+4115_daily_bin511.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/973379/ft2_4FGL_J1033.1+4115_daily_bin511.fits
.....................!
real 14.76
user 14.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973379/ft1_filtered_4FGL_J1033.1+4115_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/973379/ft2_4FGL_J1033.1+4115_daily_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/973379/ltcube_371779201_372038401_4FGL_J1033.1+4115_daily_bin511.fits outfile=/scratch/kocevski/973379/expmap_371779201_372038401_4FGL_J1033.1+4115_daily_bin511.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/973379/ltcube_371779201_372038401_4FGL_J1033.1+4115_daily_bin511.fits
.....................!
real 191.75
user 186.34
sys 4.59

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/973379/ft1_filtered_4FGL_J1033.1+4115_daily_bin511.fits scfile=/scratch/kocevski/973379/ft2_4FGL_J1033.1+4115_daily_bin511.fits outfile=/scratch/kocevski/973379/cmap_371779201_372038401_4FGL_J1033.1+4115_daily_bin511.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973379/ft1_filtered_4FGL_J1033.1+4115_daily_bin511.fits scfile=/scratch/kocevski/973379/ft2_4FGL_J1033.1+4115_daily_bin511.fits outfile=/scratch/kocevski/973379/cmap_HighResolution_371779201_372038401_4FGL_J1033.1+4115_daily_bin511.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0295       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.110       1.0000         .10000E-03   10000.    
     5 'norm      '    .12939E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5251       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.482       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.744       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.461       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.178       1.0000         .10000E-03   10000.    
    20 'norm      '    .61012       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.462       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15670       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.993       1.0000         .10000E-03   10000.    
    24 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.3338       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10957E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78556       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3160       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=   6606.672     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3782 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0280       -.21841E-06** at limit **
   2  Prefactor     7.0330        26.580        .68162E-05    .16633E-03
   3  Prefactor     .10000E-03    12.491       -.24242E-06** at limit **
   4  Prefactor     16.111        11.535        .58558E-07    .84280E-04
   5  norm          .10000E-03    17.657       -.77302E-06** at limit **
   6  Prefactor     .10000E-03    7.2831       -.38474E-06** at limit **
   7  Prefactor     7.5205        4.6380        .35131E-06    .71255E-03
   8  Prefactor     .10000E-03    21.635       -.49324E-06** at limit **
   9  norm          10.482        3.5424        .91644E-07    .19068E-03
  10  Prefactor     .10000E-03    2.8931       -.65132E-06** at limit **
  11  norm          .10000E-03    6.0761       -.24483E-06** at limit **
  12  Prefactor     .10000E-03    53.381       -.72558E-06** at limit **
  13  Prefactor     24.743        22.771        .15837E-06    .44018E-04
  14  Prefactor     10.461        5.5670        .16228E-06    .21323E-03
  15  Prefactor     .10000E-03    2.0243       -.11184E-06** at limit **
  16  Prefactor     .10000E-03    64.259       -.21695E-06** at limit **
  17  Prefactor     .10000E-03    33.240        .12030E-06** at limit **
  18  Prefactor     .10000E-03    7.6442       -.15392E-06** at limit **
  19  Prefactor     55.250        113.47        .11439E-05    .32300E-04
  20  norm          .61068        .27583        .25456E-07    .57336E-03
  21  Prefactor     17.497        15.090        .10475E-06    .59381E-04
  22  Prefactor     .10332E-03    14.583        .52505E-06** at limit **
  23  Prefactor     22.141        97.602        .15648E-05    .27704E-04
  24  norm          .10000E-03    5.9010       -.10956E-06** at limit **
  25  Prefactor     5.3339        3.5059        .16952E-06    .72811E-03
  26  Prefactor     .10000E-03    46.508       -.27179E-07** at limit **
  27  norm          .10011E-03    2.0875       -.12110E-05** at limit **
  28  Normalizat    .78541        .17370        .44188E-06    .34818E-03
  29  Prefactor     1.3161        .20972       -.95562E-06    .30701E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.03295
  Prefactor  = 0.0001
  Prefactor  = 16.1111
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.52049
  Prefactor  = 0.0001
  norm       = 10.4822
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7433
  Prefactor  = 10.4607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.2502
  norm       = 0.610677
  Prefactor  = 17.4973
  Prefactor  = 0.000103322
  Prefactor  = 22.1408
  norm       = 0.0001
  Prefactor  = 5.33388
  Prefactor  = 0.0001
  norm       = 0.000100111
  Normalizat = 0.785411
  Prefactor  = 1.31611
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.672     FROM HESSE     STATUS=OK           555 CALLS     4337 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.0330        26.629        .75654E-03   -1.5178    
   3  Prefactor     .10000E-03    12.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.111        11.529        .99787E-04   -1.4905    
   5  norm          .10000E-03    18.379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.5205        4.4631        .12364E-03   -1.5159    
   8  Prefactor     .10000E-03    21.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.482        3.5430        .85787E-04   -1.5060    
  10  Prefactor     .10000E-03    5.1608        .25053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.1303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    53.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.743        22.756        .80529E-04   -1.4713    
  14  Prefactor     10.461        5.5693        .12388E-03   -1.5061    
  15  Prefactor     .10000E-03    2.0357        .11286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    64.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     55.250        113.69        .54000E-04   -1.4220    
  20  norm          .61068        .27771        .26163E-04   -1.5552    
  21  Prefactor     17.497        15.115        .95845E-04   -1.4871    
  22  Prefactor     .10332E-03    18.056        .84690E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.141        97.861        .85410E-04   -1.4767    
  24  norm          .10000E-03    5.9211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.3339        3.4354        .11638E-03   -1.5246    
  26  Prefactor     .10000E-03    46.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10011E-03    12.621        .19114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78541        .20422        .26702E-03   -1.0061    
  29  Prefactor     1.3161        .24615        .26964E-03   -.82829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09762e-09
Minuit parameter uncertainties:
  1  3.45418e-05
  2  26.6737
  3  3.85217e-05
  4  11.5308
  5  6.70504e-05
  6  1.66127e-05
  7  4.46332
  8  7.20133e-05
  9  3.5431
  10  9.04794e-06
  11  1.60244e-05
  12  0.000155222
  13  22.7638
  14  5.56959
  15  4.0497e-06
  16  3.13333e-05
  17  2.41964e-05
  18  1.48466e-05
  19  114.141
  20  0.27771
  21  15.1181
  22  0.0154948
  23  93.3529
  24  5.35355e-06
  25  3.43557
  26  3.10887e-05
  27  0.00236508
  28  0.204423
  29  0.24637
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.046e+01  5.570e+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.316e+00  2.464e-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:  7.854e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.81
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.68e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.32e-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) = 6606.52380181
delta logL = 0.148586596803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6606.51383739
delta logL = 0.158551013719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.619       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1258       1.0000          .0000       10.000    
     3 'Normalizat'    .81059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2924       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6606.514     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      275 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.623        6.3228        .58762E-03    .80003E-04
   2  Index         2.1258        .47761        .70319E-02    .91281E-05
   3  Normalizat    .81069        .19591        .26319E-03   -.35852E-04
   4  Prefactor     1.2924        .24535        .27162E-03   -.34615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6228
  Index      = 2.12583
  Normalizat = 0.810687
  Prefactor  = 1.29245
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.514     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.623        6.3068        .11752E-03   -1.5026    
   2  Index         2.1258        .47603        .28128E-03   -.61240    
   3  Normalizat    .81069        .19606        .10528E-04   -.99673    
   4  Prefactor     1.2924        .24550        .10865E-04   -.83532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09884e-12
Minuit parameter uncertainties:
  1  6.30718
  2  0.477112
  3  0.196229
  4  0.245717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973379': 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) = 6606.51383558
delta logL = 0.158552828173

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.162e+01  6.307e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.126e+00  4.771e-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.292e+00  2.457e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  8.107e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.05
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.13 +/- 0.48
Photon Flux (Free Index): 6.17e-08 +/- 4.41e-08
Energy Flux (Free Index): 3.20e-05 +/- 2.41e-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/973379/cmap_HighResolution_371779201_372038401_4FGL_J1033.1+4115_daily_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.68e-08', energy_flux2='3.20e-05', photon_flux_error='4.09e-08', dlogl='1.59e-01', energy_flux='2.48e-05', photon_flux2='6.17e-08', job_status='DONE', time_completed='2021-09-02 03:30:22.394192', photon_index_error2='0.48', photon_index2='2.13', ts='6.81', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='0.79', time_epoch_completed='1630578622.39', return_code='0', job_id='973379', GAL2='1.29', EG2='0.81', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='4.41e-08', ts2='7.05', photon_index='2.41' WHERE bin_id='511' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:30:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 973379: <4FGL_J1033.1+4115_daily_bin511> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin511> 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) <bullet0013>, 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:30:23 2021
Results reported at Thu Sep  2 03:30:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin511 158.275 41.262 371779201 372038401 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 :                                   834.00 sec.
    Max Memory :                                 1099 MB
    Average Memory :                             359.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            866 sec.

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

