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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin998
RA = 158.275, Dec = 41.262
tmin = 498009601, tmax = 498268801
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='977457', job_status='RUN', time_executed='2021-09-02 03:34:43.718520', time_epoch_executed='1630578883.72' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977457/ft1_4FGL_J1033.1+4115_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977457/ft2_4FGL_J1033.1+4115_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977457/ft1_4FGL_J1033.1+4115_daily_bin998.fits outfile=/scratch/kocevski/977457/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin998.fits ra=158.275 dec=41.262 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.09
user 7.72
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977457/ft1_filtered_4FGL_J1033.1+4115_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/977457/ft2_4FGL_J1033.1+4115_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/977457/ltcube_498009601_498268801_4FGL_J1033.1+4115_daily_bin998.fits outfile=/scratch/kocevski/977457/expmap_498009601_498268801_4FGL_J1033.1+4115_daily_bin998.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/977457/ltcube_498009601_498268801_4FGL_J1033.1+4115_daily_bin998.fits
.....................!
real 194.30
user 188.48
sys 4.81

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/977457/ft1_filtered_4FGL_J1033.1+4115_daily_bin998.fits scfile=/scratch/kocevski/977457/ft2_4FGL_J1033.1+4115_daily_bin998.fits outfile=/scratch/kocevski/977457/cmap_498009601_498268801_4FGL_J1033.1+4115_daily_bin998.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/977457/ft1_filtered_4FGL_J1033.1+4115_daily_bin998.fits scfile=/scratch/kocevski/977457/ft2_4FGL_J1033.1+4115_daily_bin998.fits outfile=/scratch/kocevski/977457/cmap_HighResolution_498009601_498268801_4FGL_J1033.1+4115_daily_bin998.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.63
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5703       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.399       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8675       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3115       1.0000         .10000E-03   10000.    
    11 'norm      '    .28469E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.686       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.944       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.631       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .73297       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9389       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4479       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.0420       1.0000         .10000E-03   10000.    
    27 'norm      '    3.1875       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0564       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92713       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=   4314.667     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3657 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3514        .65620E-07** at limit **
   2  Prefactor     .10000E-03    144.11        .31500E-05** at limit **
   3  Prefactor     .10000E-03    36.067        .35618E-06** at limit **
   4  Prefactor     8.5709        11.431        .11651E-06   -.96917E-05
   5  norm          .10000E-03    7.2697        .10545E-06** at limit **
   6  Prefactor     12.399        9.1129        .10413E-05    .64566E-03
   7  Prefactor     2.8674        4.9761       -.30595E-06    .27688E-04
   8  Prefactor     .10000E-03    32.558        .22445E-06** at limit **
   9  norm          .10000E-03    1.2922        .45030E-08** at limit **
  10  Prefactor     2.3123        6.5804        .13416E-05    .26230E-03
  11  norm          .10192E-03    24.227        .50260E-05** at limit **
  12  Prefactor     .10000E-03    39.423        .38321E-06** at limit **
  13  Prefactor     .10000E-03    11.919        .34590E-07** at limit **
  14  Prefactor     10.686        6.5361        .13808E-05    .96921E-03
  15  Prefactor     .10000E-03    1.8517        .20533E-07** at limit **
  16  Prefactor     13.935        33.085       -.14198E-05   -.67852E-04
  17  Prefactor     15.542        198.94       -.48238E-05   -.47536E-04
  18  Prefactor     .10000E-03    9.6478       -.74312E-07** at limit **
  19  Prefactor     .10000E-03    31.785        .98555E-07** at limit **
  20  norm          .73297        .26499        .60304E-09   -.19609E-03
  21  Prefactor     8.9388        9.1073        .15242E-06    .50457E-04
  22  Prefactor     .10000E-03    4.1372        .35385E-07** at limit **
  23  Prefactor     .10000E-03    39.367       -.86347E-07** at limit **
  24  norm          .10000E-03    9.1893        .73364E-06** at limit **
  25  Prefactor     1.4494        2.9270       -.52426E-07    .16147E-04
  26  Prefactor     7.0094        78.933        .11868E-05   -.30399E-05
  27  norm          3.1879        2.7463        .49368E-07    .82150E-04
  28  Normalizat    1.0566        .20353        .21685E-05   -.25947E-03
  29  Prefactor     .92685        .24722       -.42096E-05   -.27263E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 8.57087
  norm       = 0.0001
  Prefactor  = 12.3985
  Prefactor  = 2.86736
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.31228
  norm       = 0.000101924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6855
  Prefactor  = 0.0001
  Prefactor  = 13.9354
  Prefactor  = 15.5425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.73297
  Prefactor  = 8.93883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.44942
  Prefactor  = 7.00942
  norm       = 3.18794
  Normalizat = 1.05656
  Prefactor  = 0.926852
 **********
 **   18 **HESSE 
 **********

 FCN=   4314.667     FROM HESSE     STATUS=OK           547 CALLS     4204 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3544        .16169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    147.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5709        11.427        .13693E-03   -1.5122    
   5  norm          .10000E-03    7.2851        .17296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.399        9.2152        .56879E-03   -1.5004    
   7  Prefactor     2.8674        4.8281        .14690E-03   -1.5369    
   8  Prefactor     .10000E-03    32.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3010        .72902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3123        6.4391        .21649E-03   -1.5404    
  11  norm          .10192E-03    98.197        .42001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.686        6.6891        .61283E-03   -1.5054    
  15  Prefactor     .10000E-03    1.8558        .87270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.935        33.045        .10726E-03   -1.4961    
  17  Prefactor     15.542        202.88        .10131E-03   -1.4919    
  18  Prefactor     .10000E-03    9.6575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .73297        .26595        .19715E-04   -1.5537    
  21  Prefactor     8.9388        9.1081        .13406E-03   -1.5110    
  22  Prefactor     .10000E-03    4.1383        .13048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    39.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.3221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4494        2.8507        .13346E-03   -1.5467    
  26  Prefactor     7.0094        77.111        .15117E-03   -1.5178    
  27  norm          3.1879        2.7352        .92660E-04   -1.5351    
  28  Normalizat    1.0566        .23254        .21975E-03   -.91159    
  29  Prefactor     .92685        .27899        .29273E-03   -.95209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.994e-08
Minuit parameter uncertainties:
  1  7.90772e-06
  2  0.00146062
  3  2.24521e-05
  4  11.43
  5  7.09993e-06
  6  9.21621
  7  4.82872
  8  5.3068e-05
  9  4.68966e-07
  10  6.441
  11  0.0275327
  12  0.000143863
  13  1.66916e-06
  14  6.68953
  15  2.33375e-06
  16  33.0883
  17  112.78
  18  4.50117e-05
  19  2.99253e-05
  20  0.265955
  21  9.10955
  22  2.94763e-06
  23  9.30689e-06
  24  0.00012989
  25  2.85095
  26  46.5736
  27  2.73528
  28  0.232763
  29  0.279423
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.069e+01  6.690e+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.269e-01  2.794e-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  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.10
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.85e-08 +/- 4.91e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.58e-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) = 4314.26372912
delta logL = 0.403583147538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4314.2535046
delta logL = 0.413807663857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.343       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9649       1.0000          .0000       10.000    
     3 'Normalizat'    1.0891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90287       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=   4314.254     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.343        9.1532        .29738E-02   -.33374E-02
   2  Index         1.9650        .49545        .17018       -.10228E-04
   3  Normalizat    1.0892        .18932        .38460E-01    .63543E-05
   4  Prefactor     .90289        .23681        .66960E-01    .87204E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3427
  Index      = 1.96501
  Normalizat = 1.08915
  Prefactor  = 0.902889
 **********
 **   18 **HESSE 
 **********

 FCN=   4314.254     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.343        8.0866        .11895E-03   -1.5034    
   2  Index         1.9650        .49453        .66254E-02   -.65228    
   3  Normalizat    1.0892        .22306        .21691E-03   -.90101    
   4  Prefactor     .90289        .27696        .29620E-03   -.96040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8703e-09
Minuit parameter uncertainties:
  1  8.08742
  2  0.495812
  3  0.223251
  4  0.277389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977457': 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) = 4314.25350457
delta logL = 0.413807693343

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.134e+01  8.087e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  1.965e+00  4.958e-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.029e-01  2.774e-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.089e+00  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.90
Ra Dec: 158.275 41.262
Photon Index (Free Index): 1.97 +/- 0.50
Photon Flux (Free Index): 5.15e-08 +/- 4.87e-08
Energy Flux (Free Index): 3.89e-05 +/- 3.57e-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/977457/cmap_HighResolution_498009601_498268801_4FGL_J1033.1+4115_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.85e-08', energy_flux2='3.89e-05', photon_flux_error='4.91e-08', dlogl='4.14e-01', energy_flux='2.53e-05', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-09-02 03:46:18.987770', photon_index_error2='0.50', photon_index2='1.97', ts='8.10', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='1.06', time_epoch_completed='1630579578.99', return_code='0', job_id='977457', GAL2='0.90', EG2='1.09', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='4.87e-08', ts2='8.90', photon_index='2.41' WHERE bin_id='998' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:46:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 977457: <4FGL_J1033.1+4115_daily_bin998> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin998> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  2 03:30:25 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:30:35 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:30:35 2021
Terminated at Thu Sep  2 03:46:19 2021
Results reported at Thu Sep  2 03:46:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin998 158.275 41.262 498009601 498268801 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 :                                   683.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            954 sec.

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

