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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin726
RA = 158.275, Dec = 41.262
tmin = 427507201, tmax = 427766401
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='974822', job_status='RUN', time_executed='2021-09-02 03:23:57.403850', time_epoch_executed='1630578237.4' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974822

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974822/ft1_4FGL_J1033.1+4115_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974822/ft2_4FGL_J1033.1+4115_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974822/ft1_4FGL_J1033.1+4115_daily_bin726.fits outfile=/scratch/kocevski/974822/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin726.fits ra=158.275 dec=41.262 rad=12.0 tmin=427507201.0 tmax=427766401.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.54
user 5.25
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974822/ft1_filtered_4FGL_J1033.1+4115_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/974822/ft2_4FGL_J1033.1+4115_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/974822/ltcube_427507201_427766401_4FGL_J1033.1+4115_daily_bin726.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/974822/ft2_4FGL_J1033.1+4115_daily_bin726.fits
.....................!
real 16.88
user 16.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974822/ft1_filtered_4FGL_J1033.1+4115_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/974822/ft2_4FGL_J1033.1+4115_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/974822/ltcube_427507201_427766401_4FGL_J1033.1+4115_daily_bin726.fits outfile=/scratch/kocevski/974822/expmap_427507201_427766401_4FGL_J1033.1+4115_daily_bin726.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/974822/ltcube_427507201_427766401_4FGL_J1033.1+4115_daily_bin726.fits
.....................!
real 192.43
user 187.37
sys 4.54

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/974822/ft1_filtered_4FGL_J1033.1+4115_daily_bin726.fits scfile=/scratch/kocevski/974822/ft2_4FGL_J1033.1+4115_daily_bin726.fits outfile=/scratch/kocevski/974822/cmap_427507201_427766401_4FGL_J1033.1+4115_daily_bin726.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.62
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974822/ft1_filtered_4FGL_J1033.1+4115_daily_bin726.fits scfile=/scratch/kocevski/974822/ft2_4FGL_J1033.1+4115_daily_bin726.fits outfile=/scratch/kocevski/974822/cmap_HighResolution_427507201_427766401_4FGL_J1033.1+4115_daily_bin726.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.60
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4743       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.176       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.621       1.0000         .10000E-03   10000.    
     5 'norm      '    49.119       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17594E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.187       1.0000         .10000E-03   10000.    
     9 'norm      '    3.2342       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4314       1.0000         .10000E-03   10000.    
    11 'norm      '    .78472       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.802       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1036       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2225       1.0000         .10000E-03   10000.    
    17 'Prefactor '    136.83       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.380       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.247       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9713       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .61314       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.6321       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87348       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1899       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=   5737.814     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3735 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.8249       -.17260E-06** at limit **
   2  Prefactor     3.4724        16.987       -.37511E-06   -.11528E-04
   3  Prefactor     13.169        26.371       -.22636E-06    .14125E-04
   4  Prefactor     20.617        13.869        .12567E-06    .10960E-03
   5  norm          49.090        19.285       -.10463E-06    .39664E-04
   6  Prefactor     .10000E-03    1.3428       -.57122E-09** at limit **
   7  Prefactor     .10000E-03    2.3703       -.27695E-06** at limit **
   8  Prefactor     10.082        38.240        .54272E-06    .62124E-04
   9  norm          3.2332        2.1820       -.18889E-07    .14725E-04
  10  Prefactor     3.4323        4.5314        .63305E-06    .40019E-03
  11  norm          .79574        48.694        .10632E-05    .22086E-03
  12  Prefactor     .10000E-03    24.417        .51637E-06** at limit **
  13  Prefactor     .10000E-03    37.373       -.21269E-05** at limit **
  14  Prefactor     12.793        6.3396        .34308E-06    .61487E-03
  15  Prefactor     3.0983        6.6664        .25019E-06    .12988E-03
  16  Prefactor     7.2017        38.243       -.47330E-07    .32502E-04
  17  Prefactor     136.70        96.322       -.25934E-05   -.93071E-04
  18  Prefactor     48.399        34.430       -.14160E-07   -.28302E-05
  19  Prefactor     49.214        81.561       -.13956E-05   -.18850E-04
  20  norm          1.9726        .45037       -.21457E-07   -.20910E-02
  21  Prefactor     .39088        31.042        .36332E-05   -.39434E-03
  22  Prefactor     .10000E-03    9.5887       -.54910E-08** at limit **
  23  Prefactor     .10000E-03    46.407       -.96380E-07** at limit **
  24  norm          .10000E-03    7.6346       -.10993E-07** at limit **
  25  Prefactor     .10000E-03    1.1327        .90276E-08** at limit **
  26  Prefactor     .10000E-03    20.463       -.31636E-06** at limit **
  27  norm          3.6330        2.6158       -.42672E-07   -.93680E-04
  28  Normalizat    .87396        .19811        .67572E-06    .15797E-03
  29  Prefactor     1.1897        .23636        .48450E-06    .15722E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.47238
  Prefactor  = 13.1688
  Prefactor  = 20.617
  norm       = 49.0895
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 10.0821
  norm       = 3.2332
  Prefactor  = 3.43228
  norm       = 0.795741
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.7935
  Prefactor  = 3.09829
  Prefactor  = 7.20169
  Prefactor  = 136.703
  Prefactor  = 48.3985
  Prefactor  = 49.2137
  norm       = 1.97261
  Prefactor  = 0.390881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.63304
  Normalizat = 0.873964
  Prefactor  = 1.18969
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.814     FROM HESSE     STATUS=OK           565 CALLS     4300 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.8281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4724        16.918        .10847E-02   -1.5335    
   3  Prefactor     13.169        26.354        .11035E-03   -1.4982    
   4  Prefactor     20.617        13.828        .88203E-04   -1.4800    
   5  norm          49.090        19.339        .57217E-04   -1.4306    
   6  Prefactor     .10000E-03    1.3445        .85718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.840        .21443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.082        38.059        .12554E-03   -1.5073    
   9  norm          3.2332        2.1872        .89357E-04   -1.5348    
  10  Prefactor     3.4323        4.3977        .16879E-03   -1.5337    
  11  norm          .79574        7.6473        .11793       -1.5530    
  12  Prefactor     .10000E-03    24.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    37.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.793        6.2499        .11195E-03   -1.4992    
  15  Prefactor     3.0983        6.7111        .11509E-02   -1.5356    
  16  Prefactor     7.2017        38.169        .14925E-03   -1.5171    
  17  Prefactor     136.70        96.781        .17216E-03   -1.3364    
  18  Prefactor     48.399        34.459        .57650E-04   -1.4315    
  19  Prefactor     49.214        81.711        .57143E-04   -1.4304    
  20  norm          1.9726        .46863        .22024E-04   -1.5427    
  21  Prefactor     .39088        293.29        .52950E-02   -1.5583    
  22  Prefactor     .10000E-03    9.5973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    46.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.6487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.1371        .78695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.6330        2.6109        .10089E-03   -1.5327    
  28  Normalizat    .87396        .23833        .26511E-03   -.97381    
  29  Prefactor     1.1897        .28122        .29427E-03   -.86649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70017e-08
Minuit parameter uncertainties:
  1  1.09798e-05
  2  15.3357
  3  26.3773
  4  13.8297
  5  19.3412
  6  3.40129e-07
  7  0.000511222
  8  38.1504
  9  2.18721
  10  4.39809
  11  4.9342
  12  6.34497e-05
  13  0.000340331
  14  6.25022
  15  6.71277
  16  33.1918
  17  96.8929
  18  34.4733
  19  81.8979
  20  0.468633
  21  21.5179
  22  1.74391e-05
  23  1.55383e-05
  24  1.69543e-05
  25  1.75866e-06
  26  4.75332e-05
  27  2.61099
  28  0.238612
  29  0.281577
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.279e+01  6.250e+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.190e+00  2.816e-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.740e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.66
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 9.40e-08 +/- 4.59e-08
Energy Flux (Fixed Index): 3.03e-05 +/- 1.48e-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) = 5737.46603892
delta logL = 0.347794781161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5737.43245073
delta logL = 0.381382970898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.361       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0725       1.0000          .0000       10.000    
     3 'Normalizat'    .90427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1638       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=   5737.432     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 19.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.362        6.3930        .13788E-05   -.19553E-02
   2  Index         2.0728        .30654       -.48215E-05   -.56123E-03
   3  Normalizat    .90430        .18491        .23912E-06    .97841E-04
   4  Prefactor     1.1638        .23425       -.40450E-06    .73558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3619
  Index      = 2.07285
  Normalizat = 0.904298
  Prefactor  = 1.1638
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.432     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.362        6.9664        .10569E-03   -1.4950    
   2  Index         2.0728        .37600        .60758E-02   -.62541    
   3  Normalizat    .90430        .22099        .26113E-03   -.96309    
   4  Prefactor     1.1638        .27893        .29701E-03   -.87453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06729e-09
Minuit parameter uncertainties:
  1  6.96677
  2  0.376537
  3  0.221214
  4  0.279283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974822': 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) = 5737.43245015
delta logL = 0.381383555038

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.436e+01  6.967e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.073e+00  3.765e-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.164e+00  2.793e-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.043e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.36
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.07 +/- 0.38
Photon Flux (Free Index): 7.22e-08 +/- 4.39e-08
Energy Flux (Free Index): 4.21e-05 +/- 2.85e-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/974822/cmap_HighResolution_427507201_427766401_4FGL_J1033.1+4115_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.40e-08', energy_flux2='4.21e-05', photon_flux_error='4.59e-08', dlogl='3.81e-01', energy_flux='3.03e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-09-02 03:37:12.780242', photon_index_error2='0.38', photon_index2='2.07', ts='13.66', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.85e-05', EG='0.87', time_epoch_completed='1630579032.78', return_code='0', job_id='974822', GAL2='1.16', EG2='0.90', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='4.39e-08', ts2='14.36', photon_index='2.41' WHERE bin_id='726' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:37:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 974822: <4FGL_J1033.1+4115_daily_bin726> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin726 158.275 41.262 427507201 427766401 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 :                                   791.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            998 sec.

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

