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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin746
RA = 158.275, Dec = 41.262
tmin = 432691201, tmax = 432950401
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='974850', job_status='RUN', time_executed='2021-09-02 03:23:11.388431', time_epoch_executed='1630578191.39' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974850/ft1_4FGL_J1033.1+4115_daily_bin746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974850/ft2_4FGL_J1033.1+4115_daily_bin746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974850/ft1_4FGL_J1033.1+4115_daily_bin746.fits outfile=/scratch/kocevski/974850/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin746.fits ra=158.275 dec=41.262 rad=12.0 tmin=432691201.0 tmax=432950401.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 5.48
user 5.08
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974850/ft1_filtered_4FGL_J1033.1+4115_daily_bin746.fits evtable="EVENTS" scfile=/scratch/kocevski/974850/ft2_4FGL_J1033.1+4115_daily_bin746.fits sctable="SC_DATA" expcube=/scratch/kocevski/974850/ltcube_432691201_432950401_4FGL_J1033.1+4115_daily_bin746.fits outfile=/scratch/kocevski/974850/expmap_432691201_432950401_4FGL_J1033.1+4115_daily_bin746.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/974850/ltcube_432691201_432950401_4FGL_J1033.1+4115_daily_bin746.fits
.....................!
real 192.41
user 187.63
sys 4.21

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/974850/ft1_filtered_4FGL_J1033.1+4115_daily_bin746.fits scfile=/scratch/kocevski/974850/ft2_4FGL_J1033.1+4115_daily_bin746.fits outfile=/scratch/kocevski/974850/cmap_432691201_432950401_4FGL_J1033.1+4115_daily_bin746.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.76
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974850/ft1_filtered_4FGL_J1033.1+4115_daily_bin746.fits scfile=/scratch/kocevski/974850/ft2_4FGL_J1033.1+4115_daily_bin746.fits outfile=/scratch/kocevski/974850/cmap_HighResolution_432691201_432950401_4FGL_J1033.1+4115_daily_bin746.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.62
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37665E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9475       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15988E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.975       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9061       1.0000         .10000E-03   10000.    
    11 'norm      '    10.545       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.530       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    71.811       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0676       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.477       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.0044       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0562       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.2074       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91191       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96332       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=   5741.259     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3746 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10104E-03    19.573       -.43758E-05** at limit **
   2  Prefactor     37.969        27.711        .83159E-06    .33113E-03
   3  Prefactor     .10000E-03    57.107        .19118E-05** at limit **
   4  Prefactor     5.9480        7.8392        .29648E-05    .18017E-03
   5  norm          .10000E-03    7.5732        .89266E-07** at limit **
   6  Prefactor     .10002E-03    4.4466        .17433E-05** at limit **
   7  Prefactor     .10000E-03    1.5312        .61910E-07** at limit **
   8  Prefactor     .10000E-03    10.898        .10266E-05** at limit **
   9  norm          10.975        3.6366       -.62539E-08   -.40275E-03
  10  Prefactor     7.9062        5.2743        .10478E-06    .25175E-03
  11  norm          10.545        9.3521       -.39884E-07   -.83839E-05
  12  Prefactor     .10000E-03    32.375       -.17773E-05** at limit **
  13  Prefactor     32.535        32.849        .24311E-06    .47111E-04
  14  Prefactor     9.9739        5.1141       -.14787E-06   -.18910E-03
  15  Prefactor     .10000E-03    3.2281        .14038E-06** at limit **
  16  Prefactor     .10000E-03    12.190       -.13601E-05** at limit **
  17  Prefactor     71.780        70.748       -.47641E-05   -.26627E-03
  18  Prefactor     .10000E-03    51.051        .12795E-05** at limit **
  19  Prefactor     .10000E-03    32.962       -.20512E-05** at limit **
  20  norm          2.0675        .43268       -.61562E-08    .32859E-04
  21  Prefactor     14.481        20.907       -.17394E-06   -.18700E-05
  22  Prefactor     .10000E-03    9.9064       -.89294E-06** at limit **
  23  Prefactor     .10000E-03    25.461        .21778E-05** at limit **
  24  norm          8.0035        16.945        .49043E-07   -.17400E-05
  25  Prefactor     2.0563        2.0966       -.37864E-07   -.83730E-05
  26  Prefactor     .10000E-03    19.205        .27593E-07** at limit **
  27  norm          3.2075        2.8464        .55520E-07    .18838E-04
  28  Normalizat    .91183        .17376        .84885E-06   -.22509E-04
  29  Prefactor     .96335        .21196       -.80721E-06    .70120E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000101044
  Prefactor  = 37.9687
  Prefactor  = 0.000100003
  Prefactor  = 5.94797
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9748
  Prefactor  = 7.90622
  norm       = 10.5452
  Prefactor  = 0.000100001
  Prefactor  = 32.5346
  Prefactor  = 9.97395
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 71.7799
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.06755
  Prefactor  = 14.4805
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 8.00351
  Prefactor  = 2.05631
  Prefactor  = 0.0001
  norm       = 3.20753
  Normalizat = 0.911828
  Prefactor  = 0.963349
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.259     FROM HESSE     STATUS=OK           553 CALLS     4299 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10104E-03    110.59        .55636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.969        26.152        .65002E-04   -1.4475    
   3  Prefactor     .10000E-03    58.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9480        8.0737        .82328E-03   -1.5220    
   5  norm          .10000E-03    7.6112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    10.975        .29097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5394        .91327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.975        3.6240        .80021E-04   -1.5045    
  10  Prefactor     7.9062        5.2805        .13319E-03   -1.5146    
  11  norm          10.545        9.3483        .12338E-03   -1.5058    
  12  Prefactor     .10000E-03    32.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.535        32.755        .70255E-04   -1.4567    
  14  Prefactor     9.9739        5.1223        .11537E-03   -1.5076    
  15  Prefactor     .10000E-03    3.2393        .13250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     71.780        73.295        .47374E-04   -1.4011    
  18  Prefactor     .10000E-03    51.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0675        .43489        .21072E-04   -1.5420    
  21  Prefactor     14.481        20.888        .10527E-03   -1.4947    
  22  Prefactor     .10000E-03    9.9700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.0035        16.862        .14172E-03   -1.5142    
  25  Prefactor     2.0563        2.0992        .10668E-03   -1.5421    
  26  Prefactor     .10000E-03    19.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.2075        2.8362        .11572E-03   -1.5350    
  28  Normalizat    .91183        .20467        .23738E-03   -.96046    
  29  Prefactor     .96335        .24992        .29653E-03   -.93961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13056e-08
Minuit parameter uncertainties:
  1  0.0215278
  2  26.16
  3  0.000872946
  4  8.07519
  5  5.69775e-06
  6  0.000830968
  7  4.09017e-06
  8  0.000137594
  9  3.62409
  10  5.2808
  11  9.34957
  12  0.000434228
  13  32.7732
  14  5.12256
  15  1.57456e-06
  16  0.000199503
  17  73.3871
  18  0.000300955
  19  0.000497731
  20  0.434892
  21  20.8984
  22  0.000115209
  23  0.000464449
  24  16.8724
  25  2.09927
  26  3.43242e-06
  27  2.83633
  28  0.204844
  29  0.25022
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  9.974e+00  5.123e+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:  9.633e-01  2.502e-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:  9.118e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.17
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.33e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.21e-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) = 5741.22045051
delta logL = 0.038336020295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5741.21591486
delta logL = 0.0428716722772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.733       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2616       1.0000          .0000       10.000    
     3 'Normalizat'    .92340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95246       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=   5741.216     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.735        122.29        .30573E-02    .85567E-04
   2  Index         2.2623        6.0742        .18125        .49285E-04
   3  Normalizat    .92341        .12479        .45200E-01    .71711E-05
   4  Prefactor     .95251        .11964        .67376E-01    .31556E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7351
  Index      = 2.26228
  Normalizat = 0.923408
  Prefactor  = 0.952506
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.216     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.735        5.9728        .12229E-03   -1.5053    
   2  Index         2.2623        .50536        .66234E-02   -.57943    
   3  Normalizat    .92341        .19845        .23609E-03   -.95642    
   4  Prefactor     .95251        .25083        .29802E-03   -.94330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62616e-12
Minuit parameter uncertainties:
  1  5.97313
  2  0.506596
  3  0.198608
  4  0.251136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974850': 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) = 5741.21591317
delta logL = 0.0428733543677

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.074e+01  5.973e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.262e+00  5.066e-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:  9.525e-01  2.511e-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:  9.234e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.21
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.26 +/- 0.51
Photon Flux (Free Index): 6.61e-08 +/- 4.19e-08
Energy Flux (Free Index): 2.66e-05 +/- 1.87e-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/974850/cmap_HighResolution_432691201_432950401_4FGL_J1033.1+4115_daily_bin746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.33e-08', energy_flux2='2.66e-05', photon_flux_error='3.76e-08', dlogl='4.29e-02', energy_flux='2.36e-05', photon_flux2='6.61e-08', job_status='DONE', time_completed='2021-09-02 03:36:36.961601', photon_index_error2='0.51', photon_index2='2.26', ts='11.17', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.87e-05', EG='0.91', time_epoch_completed='1630578996.96', return_code='0', job_id='974850', GAL2='0.95', EG2='0.92', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.19e-08', ts2='11.21', photon_index='2.41' WHERE bin_id='746' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:36:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 974850: <4FGL_J1033.1+4115_daily_bin746> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin746 158.275 41.262 432691201 432950401 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 :                                   803.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            959 sec.

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

