/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 120 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 = 7664
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1033.1+4115_daily_bin408
RA = 158.275, Dec = 41.262
tmin = 345081601, tmax = 345340801
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='973211', job_status='RUN', time_executed='2021-09-02 03:18:30.045248', time_epoch_executed='1630577910.05' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973211

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973211/ft1_4FGL_J1033.1+4115_daily_bin408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973211/ft2_4FGL_J1033.1+4115_daily_bin408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973211/ft1_4FGL_J1033.1+4115_daily_bin408.fits outfile=/scratch/kocevski/973211/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin408.fits ra=158.275 dec=41.262 rad=12.0 tmin=345081601.0 tmax=345340801.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.76
user 3.30
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973211/ft1_filtered_4FGL_J1033.1+4115_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/973211/ft2_4FGL_J1033.1+4115_daily_bin408.fits sctable="SC_DATA" expcube=/scratch/kocevski/973211/ltcube_345081601_345340801_4FGL_J1033.1+4115_daily_bin408.fits outfile=/scratch/kocevski/973211/expmap_345081601_345340801_4FGL_J1033.1+4115_daily_bin408.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/973211/ltcube_345081601_345340801_4FGL_J1033.1+4115_daily_bin408.fits
.....................!
real 192.34
user 186.90
sys 4.82

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/973211/ft1_filtered_4FGL_J1033.1+4115_daily_bin408.fits scfile=/scratch/kocevski/973211/ft2_4FGL_J1033.1+4115_daily_bin408.fits outfile=/scratch/kocevski/973211/cmap_345081601_345340801_4FGL_J1033.1+4115_daily_bin408.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=158.275 yref=41.262 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973211/ft1_filtered_4FGL_J1033.1+4115_daily_bin408.fits scfile=/scratch/kocevski/973211/ft2_4FGL_J1033.1+4115_daily_bin408.fits outfile=/scratch/kocevski/973211/cmap_HighResolution_345081601_345340801_4FGL_J1033.1+4115_daily_bin408.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5203       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9788       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4200       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8762       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0314       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .63671       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0502       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11070E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10353E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4914       1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.707       1.0000         .10000E-03   10000.    
    27 'norm      '    .12319E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0571       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73324       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=   5679.622     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3635 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0304        .20272E-07** at limit **
   2  Prefactor     .10000E-03    8.1362        .60702E-07** at limit **
   3  Prefactor     .10000E-03    16.788        .23286E-06** at limit **
   4  Prefactor     .10000E-03    7.8243       -.11626E-06** at limit **
   5  norm          .10000E-03    8.7450        .24510E-06** at limit **
   6  Prefactor     2.5200        5.3641        .52800E-05   -.24741E-03
   7  Prefactor     .10000E-03    1.1477       -.11545E-06** at limit **
   8  Prefactor     5.9769        21.595        .50548E-06   -.11210E-04
   9  norm          2.9181        2.0945       -.12155E-06   -.23568E-04
  10  Prefactor     1.4181        4.1524        .98979E-06    .50531E-04
  11  norm          .10000E-03    4.3122        .27931E-07** at limit **
  12  Prefactor     .10000E-03    16.946        .23525E-06** at limit **
  13  Prefactor     .10000E-03    18.674        .85994E-06** at limit **
  14  Prefactor     9.8754        4.7968        .65206E-07    .10671E-04
  15  Prefactor     3.0289        4.1604       -.25692E-06   -.84418E-04
  16  Prefactor     .10000E-03    14.496       -.61721E-07** at limit **
  17  Prefactor     .10000E-03    36.961        .63242E-06** at limit **
  18  Prefactor     .10000E-03    9.9725       -.29891E-06** at limit **
  19  Prefactor     .10000E-03    20.999       -.10783E-06** at limit **
  20  norm          .63681        .23307        .66853E-08    .29510E-03
  21  Prefactor     9.0536        15.470        .41224E-06    .45981E-04
  22  Prefactor     .10000E-03    20.753        .40601E-07** at limit **
  23  Prefactor     .10000E-03    31.921       -.81590E-06** at limit **
  24  norm          .10000E-03    8.8998        .74191E-07** at limit **
  25  Prefactor     2.4926        2.3152       -.23178E-06   -.11689E-03
  26  Prefactor     38.673        37.215        .33731E-05   -.67695E-04
  27  norm          .10000E-03    1.2706       -.12787E-05** at limit **
  28  Normalizat    1.0571        .15374       -.13540E-05    .58727E-04
  29  Prefactor     .73320        .18177        .40912E-06   -.40501E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.52001
  Prefactor  = 0.0001
  Prefactor  = 5.97691
  norm       = 2.91806
  Prefactor  = 1.41814
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.87543
  Prefactor  = 3.0289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.636807
  Prefactor  = 9.0536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.4926
  Prefactor  = 38.6725
  norm       = 0.000100001
  Normalizat = 1.05715
  Prefactor  = 0.733201
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.622     FROM HESSE     STATUS=OK           547 CALLS     4182 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0318        .14777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.9444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.8120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5200        5.3893        .12149E-02   -1.5390    
   7  Prefactor     .10000E-03    1.1511        .78713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.9769        21.613        .16422E-03   -1.5219    
   9  norm          2.9181        2.0939        .89522E-04   -1.5366    
  10  Prefactor     1.4181        4.1176        .24430E-03   -1.5470    
  11  norm          .10000E-03    4.3374        .15277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.8754        4.8052        .10899E-03   -1.5079    
  15  Prefactor     3.0289        4.1344        .17141E-03   -1.5360    
  16  Prefactor     .10000E-03    14.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.9849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .63681        .23374        .20565E-04   -1.5548    
  21  Prefactor     9.0536        15.428        .13323E-03   -1.5106    
  22  Prefactor     .10000E-03    21.272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.9620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.4926        2.3175        .10374E-03   -1.5392    
  26  Prefactor     38.673        37.231        .32212E-03   -1.4463    
  27  norm          .10000E-03    1.3620        .16913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0571        .17971        .19977E-03   -.91140    
  29  Prefactor     .73320        .21200        .29194E-03   -1.0224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27723e-10
Minuit parameter uncertainties:
  1  6.21095e-07
  2  1.18238e-06
  3  1.89004e-05
  4  1.10843e-05
  5  7.80263e-06
  6  5.3903
  7  6.78252e-06
  8  21.6415
  9  2.094
  10  4.1184
  11  4.71973e-06
  12  2.24741e-05
  13  0.000126764
  14  4.80536
  15  4.13483
  16  3.73974e-05
  17  7.71538e-05
  18  3.20381e-05
  19  1.6023e-05
  20  0.233743
  21  15.4348
  22  5.94972e-05
  23  0.00011532
  24  1.63313e-05
  25  2.31756
  26  37.2535
  27  7.48146e-05
  28  0.179816
  29  0.212239
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  9.875e+00  4.805e+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:  7.332e-01  2.122e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.057e+00  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.44
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.25e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 1.14e-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) = 5679.6202047
delta logL = 0.00192920352947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5679.61961027
delta logL = 0.0025236321826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.022       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3770       1.0000          .0000       10.000    
     3 'Normalizat'    1.0593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73157       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=   5679.620     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      244 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.024        5.3647        .55380E-03   -.68380E-04
   2  Index         2.3767        .50826        .62020E-02    .11030E-04
   3  Normalizat    1.0599        .17558        .19955E-03    .80329E-05
   4  Prefactor     .73097        .21285        .29234E-03   -.11044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0244
  Index      = 2.37673
  Normalizat = 1.05988
  Prefactor  = 0.73097
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.620     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.024        5.2619        .22152E-04   -1.5075    
   2  Index         2.3767        .49805        .24808E-03   -.55231    
   3  Normalizat    1.0599        .17568        .79821E-05   -.91051    
   4  Prefactor     .73097        .21296        .11694E-04   -1.0233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3927e-12
Minuit parameter uncertainties:
  1  5.26209
  2  0.499197
  3  0.175777
  4  0.213196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973211': 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) = 5679.61960527
delta logL = 0.00252862907382

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.002e+01  5.262e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.377e+00  4.992e-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:  7.310e-01  2.132e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.060e+00  1.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.41
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.38 +/- 0.50
Photon Flux (Free Index): 7.05e-08 +/- 4.46e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.34e-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/973211/cmap_HighResolution_345081601_345340801_4FGL_J1033.1+4115_daily_bin408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.25e-08', energy_flux2='2.38e-05', photon_flux_error='3.53e-08', dlogl='2.53e-03', energy_flux='2.34e-05', photon_flux2='7.05e-08', job_status='DONE', time_completed='2021-09-02 03:31:11.967241', photon_index_error2='0.50', photon_index2='2.38', ts='9.44', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='1.06', time_epoch_completed='1630578671.97', return_code='0', job_id='973211', GAL2='0.73', EG2='1.06', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.46e-08', ts2='9.41', photon_index='2.41' WHERE bin_id='408' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:31:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 973211: <4FGL_J1033.1+4115_daily_bin408> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin408 158.275 41.262 345081601 345340801 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 :                                   755.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

