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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin510
RA = 158.275, Dec = 41.262
tmin = 371520001, tmax = 371779201
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='973377', job_status='RUN', time_executed='2021-09-02 03:16:19.823906', time_epoch_executed='1630577779.82' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973377/ft1_4FGL_J1033.1+4115_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973377/ft2_4FGL_J1033.1+4115_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973377/ft1_4FGL_J1033.1+4115_daily_bin510.fits outfile=/scratch/kocevski/973377/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin510.fits ra=158.275 dec=41.262 rad=12.0 tmin=371520001.0 tmax=371779201.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 4.52
user 4.22
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/973377/ft1_filtered_4FGL_J1033.1+4115_daily_bin510.fits" evtable="EVENTS" scfile=/scratch/kocevski/973377/ft2_4FGL_J1033.1+4115_daily_bin510.fits sctable="SC_DATA" outfile=/scratch/kocevski/973377/ltcube_371520001_371779201_4FGL_J1033.1+4115_daily_bin510.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/973377/ft2_4FGL_J1033.1+4115_daily_bin510.fits
.....................!
real 15.35
user 14.98
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973377/ft1_filtered_4FGL_J1033.1+4115_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/973377/ft2_4FGL_J1033.1+4115_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/973377/ltcube_371520001_371779201_4FGL_J1033.1+4115_daily_bin510.fits outfile=/scratch/kocevski/973377/expmap_371520001_371779201_4FGL_J1033.1+4115_daily_bin510.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/973377/ltcube_371520001_371779201_4FGL_J1033.1+4115_daily_bin510.fits
.....................!
real 191.38
user 186.47
sys 3.94

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/973377/ft1_filtered_4FGL_J1033.1+4115_daily_bin510.fits scfile=/scratch/kocevski/973377/ft2_4FGL_J1033.1+4115_daily_bin510.fits outfile=/scratch/kocevski/973377/cmap_371520001_371779201_4FGL_J1033.1+4115_daily_bin510.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973377/ft1_filtered_4FGL_J1033.1+4115_daily_bin510.fits scfile=/scratch/kocevski/973377/ft2_4FGL_J1033.1+4115_daily_bin510.fits outfile=/scratch/kocevski/973377/cmap_HighResolution_371520001_371779201_4FGL_J1033.1+4115_daily_bin510.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=158.275 yref=41.262 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.842       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6439       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.870       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9526       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.497       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.224       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4552       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6176       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.634       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.427       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.531       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0599       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11159E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6525       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    25.504       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.9959       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.164       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1389       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82910       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=   6335.638     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3682 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2305       -.67668E-07** at limit **
   2  Prefactor     .10000E-03    8.7173       -.72664E-07** at limit **
   3  Prefactor     62.839        41.136        .44200E-07    .30014E-04
   4  Prefactor     .10000E-03    4.7961       -.30771E-06** at limit **
   5  norm          .10000E-03    4.9377        .60646E-07** at limit **
   6  Prefactor     2.6433        4.1807       -.35178E-06    .10157E-03
   7  Prefactor     .10000E-03    2.3375       -.12958E-06** at limit **
   8  Prefactor     21.852        35.599        .29497E-05    .14756E-03
   9  norm          2.9524        2.0078        .29434E-07    .25086E-04
  10  Prefactor     .10000E-03    3.9967       -.15372E-06** at limit **
  11  norm          13.497        10.644        .19608E-06    .80498E-04
  12  Prefactor     29.205        47.680        .24939E-05    .10069E-03
  13  Prefactor     4.4625        28.418        .17816E-06    .12447E-04
  14  Prefactor     5.6169        4.8483       -.15841E-05    .61521E-03
  15  Prefactor     .10000E-03    5.0716       -.14692E-06** at limit **
  16  Prefactor     42.634        38.434        .97205E-06    .22879E-04
  17  Prefactor     33.418        55.417        .13124E-05    .40804E-04
  18  Prefactor     21.510        29.950        .21078E-05    .14830E-03
  19  Prefactor     .10000E-03    64.590        .29103E-05** at limit **
  20  norm          1.0599        .31386        .25539E-07    .21646E-03
  21  Prefactor     .10000E-03    50.135        .22057E-04** at limit **
  22  Prefactor     5.6518        10.780        .43086E-06    .57656E-04
  23  Prefactor     .10000E-03    37.744        .13738E-05** at limit **
  24  norm          25.501        16.929        .47445E-06    .98848E-05
  25  Prefactor     7.9955        4.5688       -.43742E-06    .67918E-04
  26  Prefactor     10.135        38.610        .61473E-05    .10069E-03
  27  norm          .10000E-03    1.0791        .58397E-07** at limit **
  28  Normalizat    1.1391        .17236        .20029E-06    .77314E-04
  29  Prefactor     .82884        .20562       -.88639E-07    .63371E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.8393
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.64325
  Prefactor  = 0.0001
  Prefactor  = 21.8516
  norm       = 2.95242
  Prefactor  = 0.0001
  norm       = 13.4966
  Prefactor  = 29.2049
  Prefactor  = 4.46246
  Prefactor  = 5.61692
  Prefactor  = 0.0001
  Prefactor  = 42.6344
  Prefactor  = 33.4177
  Prefactor  = 21.5096
  Prefactor  = 0.000100002
  norm       = 1.05985
  Prefactor  = 0.000100002
  Prefactor  = 5.65179
  Prefactor  = 0.000100001
  norm       = 25.5009
  Prefactor  = 7.99551
  Prefactor  = 10.135
  norm       = 0.0001
  Normalizat = 1.13913
  Prefactor  = 0.828835
 **********
 **   18 **HESSE 
 **********

 FCN=   6335.638     FROM HESSE     STATUS=OK           549 CALLS     4231 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2336        .17777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.7207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     62.839        41.226        .50620E-04   -1.4121    
   4  Prefactor     .10000E-03    4.8206        .17024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.9698        .17273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6433        4.1699        .19786E-03   -1.5383    
   7  Prefactor     .10000E-03    2.4001        .23745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.852        35.829        .85650E-04   -1.4773    
   9  norm          2.9524        2.0071        .90373E-04   -1.5364    
  10  Prefactor     .10000E-03    4.1191        .31031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.497        10.631        .10903E-03   -1.4973    
  12  Prefactor     29.205        47.947        .74113E-04   -1.4627    
  13  Prefactor     4.4625        27.927        .19077E-03   -1.5285    
  14  Prefactor     5.6169        4.8921        .75953E-03   -1.5234    
  15  Prefactor     .10000E-03    5.1133        .17365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.634        38.406        .61396E-04   -1.4401    
  17  Prefactor     33.418        55.513        .69308E-04   -1.4551    
  18  Prefactor     21.510        30.136        .86321E-04   -1.4780    
  19  Prefactor     .10000E-03    64.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0599        .31347        .22825E-04   -1.5502    
  21  Prefactor     .10000E-03    49.281        .45841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.6518        10.758        .16896E-03   -1.5232    
  23  Prefactor     .10000E-03    37.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          25.501        16.621        .79322E-04   -1.4698    
  25  Prefactor     7.9955        4.5863        .11015E-03   -1.5142    
  26  Prefactor     10.135        39.143        .12568E-03   -1.5071    
  27  norm          .10000E-03    1.0885        .80685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1391        .19899        .22718E-03   -.88505    
  29  Prefactor     .82884        .23644        .32063E-03   -.98674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95065e-10
Minuit parameter uncertainties:
  1  6.36214e-06
  2  1.0424e-05
  3  41.2445
  4  1.01308e-05
  5  1.28205e-05
  6  4.17031
  7  7.07007e-06
  8  35.8647
  9  2.00716
  10  1.30507e-05
  11  10.6324
  12  48.0105
  13  22.3422
  14  4.89243
  15  1.76343e-05
  16  38.428
  17  55.5986
  18  30.1576
  19  0.000804481
  20  0.313474
  21  0.000569903
  22  10.7621
  23  0.000275426
  24  16.6238
  25  4.58645
  26  39.2429
  27  3.02483e-06
  28  0.199122
  29  0.236729
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  5.617e+00  4.892e+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:  8.288e-01  2.367e-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.139e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.42
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.16e-05

TS (Fixed Index): 3.42
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/973377/likelihoodResults_371520001_371779201_4FGL_J1033.1+4115_daily_bin510.txt

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) = 6335.63779407
delta logL = 0.00017187244066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6335.63777807
delta logL = 0.000187873816685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6169       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3973       1.0000          .0000       10.000    
     3 'Normalizat'    1.1400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82821       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=   6335.638     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      198 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6122        137.00        .42376E-02    .13616E-03
   2  Index         2.3958        5.8815        .23914        .20965E-04
   3  Normalizat    1.1401        .92745E-01    .36564E-01    .74292E-05
   4  Prefactor     .82815        .79317E-01    .72483E-01    .20182E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.61216
  Index      = 2.3958
  Normalizat = 1.14011
  Prefactor  = 0.828154
 **********
 **   18 **HESSE 
 **********

 FCN=   6335.638     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .62E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6122        4.7634        .15275E-03   -1.5234    
   2  Index         2.3958        .84440        .98960E-02   -.54783    
   3  Normalizat    1.1401        .19788        .22709E-03   -.88474    
   4  Prefactor     .82815        .23541        .32075E-03   -.98699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17671e-13
Minuit parameter uncertainties:
  1  4.76369
  2  0.850003
  3  0.19801
  4  0.235697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973377': 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) = 6335.63777604
delta logL = 0.000189901815247

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  5.612e+00  4.764e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.396e+00  8.500e-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:  8.282e-01  2.357e-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.140e+00  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.40 +/- 0.85
Photon Flux (Free Index): 4.04e-08 +/- 5.43e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.14e-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/973377/cmap_HighResolution_371520001_371779201_4FGL_J1033.1+4115_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.43e-03', comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='1.33e-05', photon_flux_error='3.59e-08', dlogl='1.90e-04', energy_flux='1.33e-05', photon_flux2='4.04e-08', job_status='DONE', time_completed='2021-09-02 03:31:54.795883', photon_index_error2='0.85', photon_index2='2.40', ts='3.42', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.14e-05', EG='1.14', time_epoch_completed='1630578714.8', return_code='0', job_id='973377', GAL2='0.83', EG2='1.14', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.43e-08', ts2='3.42', photon_index='2.41' WHERE bin_id='510' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:31:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 973377: <4FGL_J1033.1+4115_daily_bin510> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin510> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 03:15:57 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:16:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 03:16:08 2021
Terminated at Thu Sep  2 03:31:55 2021
Results reported at Thu Sep  2 03:31:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin510 158.275 41.262 371520001 371779201 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 :                                   925.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            958 sec.

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

